File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
platform/view/services/storage/driver/sql Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ SPDX-License-Identifier: Apache-2.0
77package postgres
88
99import (
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
3533func 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
4038func TestManyManyPutBindingsSqlite (t * testing.T ) {
4139 db := newBindingStoreForTests (t )
42- common .TestManyManyPutBindingsCommon (t , ( * common .BindingStore )( unsafe . Pointer ( db )) )
40+ common .TestManyManyPutBindingsCommon (t , db .BindingStore )
4341}
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ package sqlite
99import (
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
3231func 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
3736func TestManyManyPutBindingsSqlite (t * testing.T ) {
3837 db := newBindingStoreForTests (t )
39- common .TestManyManyPutBindingsCommon (t , ( * common .BindingStore )( unsafe . Pointer ( db )) )
38+ common .TestManyManyPutBindingsCommon (t , db .BindingStore )
4039}
You can’t perform that action at this time.
0 commit comments