Skip to content

Commit 1e3ca54

Browse files
fix conversions
Signed-off-by: [email protected] <[email protected]>
1 parent b1f52d7 commit 1e3ca54

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

platform/view/services/storage/driver/sql/postgres/binding_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ SPDX-License-Identifier: Apache-2.0
77
package postgres
88

99
import (
10-
"unsafe"
11-
1210
"testing"
1311

1412
testing2 "github.com/hyperledger-labs/fabric-smart-client/platform/view/services/storage/driver/common/testing"
@@ -34,10 +32,10 @@ func newBindingStoreForTests(t *testing.T) *BindingStore {
3432

3533
func TestPutBindingsMultipleEphemeralsPostgres(t *testing.T) {
3634
db := newBindingStoreForTests(t)
37-
common.TestPutBindingsMultipleEphemeralsCommon(t, (*common.BindingStore)(unsafe.Pointer(db)))
35+
common.TestPutBindingsMultipleEphemeralsCommon(t, db.BindingStore)
3836
}
3937

4038
func TestManyManyPutBindingsSqlite(t *testing.T) {
4139
db := newBindingStoreForTests(t)
42-
common.TestManyManyPutBindingsCommon(t, (*common.BindingStore)(unsafe.Pointer(db)))
40+
common.TestManyManyPutBindingsCommon(t, db.BindingStore)
4341
}

platform/view/services/storage/driver/sql/sqlite/binding_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ package sqlite
99
import (
1010
"fmt"
1111
"path"
12-
"unsafe"
1312
"testing"
1413

1514
"github.com/hyperledger-labs/fabric-smart-client/platform/common/utils"
@@ -31,10 +30,10 @@ func newBindingStoreForTests(t *testing.T) *BindingStore {
3130

3231
func TestPutBindingsMultipleEphemeralsSqlite(t *testing.T) {
3332
db := newBindingStoreForTests(t)
34-
common.TestPutBindingsMultipleEphemeralsCommon(t, (*common.BindingStore)(unsafe.Pointer(db)))
33+
common.TestPutBindingsMultipleEphemeralsCommon(t, db.BindingStore)
3534
}
3635

3736
func TestManyManyPutBindingsSqlite(t *testing.T) {
3837
db := newBindingStoreForTests(t)
39-
common.TestManyManyPutBindingsCommon(t, (*common.BindingStore)(unsafe.Pointer(db)))
38+
common.TestManyManyPutBindingsCommon(t, db.BindingStore)
4039
}

0 commit comments

Comments
 (0)