@@ -24,7 +24,6 @@ import (
2424
2525 "github.com/codenotary/immudb/pkg/api/schema"
2626 "github.com/codenotary/immudb/pkg/signer"
27- "github.com/stretchr/testify/assert"
2827 "github.com/stretchr/testify/require"
2928 "google.golang.org/protobuf/types/known/emptypb"
3029)
@@ -67,15 +66,15 @@ func TestServerCurrentStateSigned(t *testing.T) {
6766 state , err := s .CurrentState (ctx , & emptypb.Empty {})
6867
6968 require .NoError (t , err )
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 )
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 )
7473
7574 ecdsaPK , err := signer .UnmarshalKey (state .Signature .PublicKey )
7675 require .NoError (t , err )
7776
7877 ok , err := signer .Verify (state .ToBytes (), state .Signature .Signature , ecdsaPK )
7978 require .NoError (t , err )
80- assert .True (t , ok )
79+ require .True (t , ok )
8180}
0 commit comments