@@ -24,6 +24,7 @@ import (
2424
2525 "github.com/codenotary/immudb/pkg/api/schema"
2626 "github.com/codenotary/immudb/pkg/signer"
27+ "github.com/stretchr/testify/assert"
2728 "github.com/stretchr/testify/require"
2829 "google.golang.org/protobuf/types/known/emptypb"
2930)
@@ -66,15 +67,15 @@ func TestServerCurrentStateSigned(t *testing.T) {
6667 state , err := s .CurrentState (ctx , & emptypb.Empty {})
6768
6869 require .NoError (t , err )
69- require .IsType (t , & schema.ImmutableState {}, state )
70- require .IsType (t , & schema.Signature {}, state .Signature )
71- require .NotNil (t , state .Signature .Signature )
72- require .NotNil (t , state .Signature .PublicKey )
70+ assert .IsType (t , & schema.ImmutableState {}, state )
71+ assert .IsType (t , & schema.Signature {}, state .Signature )
72+ assert .NotNil (t , state .Signature .Signature )
73+ assert .NotNil (t , state .Signature .PublicKey )
7374
7475 ecdsaPK , err := signer .UnmarshalKey (state .Signature .PublicKey )
7576 require .NoError (t , err )
7677
7778 ok , err := signer .Verify (state .ToBytes (), state .Signature .Signature , ecdsaPK )
7879 require .NoError (t , err )
79- require .True (t , ok )
80+ assert .True (t , ok )
8081}
0 commit comments