@@ -22,8 +22,8 @@ import (
2222
2323 "github.com/davecgh/go-spew/spew"
2424 "github.com/golang/protobuf/proto"
25- "github.com/hyperledger/fabric/common/ledger/testutil"
2625 "github.com/hyperledger/fabric/protos/ledger/rwset/kvrwset"
26+ "github.com/stretchr/testify/assert"
2727)
2828
2929const (
@@ -35,12 +35,12 @@ const (
3535// v1.0. This is to make sure that any incompatible changes does not go uncaught.
3636func TestKVRWSetV1BackwardCompatible (t * testing.T ) {
3737 protoBytes , err := ioutil .ReadFile (binaryTestFileName )
38- testutil . AssertNoError (t , err , "" )
38+ assert . NoError (t , err )
3939 kvrwset1 := & kvrwset.KVRWSet {}
40- testutil . AssertNoError (t , proto .Unmarshal (protoBytes , kvrwset1 ), "" )
40+ assert . NoError (t , proto .Unmarshal (protoBytes , kvrwset1 ))
4141 kvrwset2 := constructSampleKVRWSet ()
4242 t .Logf ("kvrwset1=%s, kvrwset2=%s" , spew .Sdump (kvrwset1 ), spew .Sdump (kvrwset2 ))
43- testutil . AssertEquals (t , kvrwset1 , kvrwset2 )
43+ assert . Equal (t , kvrwset2 , kvrwset1 )
4444}
4545
4646// testPrepareBinaryFileSampleKVRWSetV1 constructs a proto message for kvrwset and marshals its bytes to file 'kvrwsetV1ProtoBytes'.
@@ -49,8 +49,8 @@ func TestKVRWSetV1BackwardCompatible(t *testing.T) {
4949// using golang test framwork
5050func testPrepareBinaryFileSampleKVRWSetV1 (t * testing.T ) {
5151 b , err := proto .Marshal (constructSampleKVRWSet ())
52- testutil . AssertNoError (t , err , "" )
53- testutil . AssertNoError (t , ioutil .WriteFile (binaryTestFileName , b , 0775 ), "" )
52+ assert . NoError (t , err )
53+ assert . NoError (t , ioutil .WriteFile (binaryTestFileName , b , 0775 ))
5454}
5555
5656func constructSampleKVRWSet () * kvrwset.KVRWSet {
0 commit comments