fix NotNil misuse
This commit is contained in:
parent
1daeeee4fd
commit
f31fcd6c90
|
@ -134,9 +134,9 @@ func TestManagerTestSuite(t *testing.T) {
|
||||||
nodeManager.EXPECT().AccountKeyStore().Return(keyStore, nil)
|
nodeManager.EXPECT().AccountKeyStore().Return(keyStore, nil)
|
||||||
addr, pubKey, mnemonic, err := accManager.CreateAccount(testPassword)
|
addr, pubKey, mnemonic, err := accManager.CreateAccount(testPassword)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.NotNil(t, addr)
|
require.NotEmpty(t, addr)
|
||||||
require.NotNil(t, pubKey)
|
require.NotEmpty(t, pubKey)
|
||||||
require.NotNil(t, mnemonic)
|
require.NotEmpty(t, mnemonic)
|
||||||
|
|
||||||
s := &ManagerTestSuite{
|
s := &ManagerTestSuite{
|
||||||
testAccount: testAccount{
|
testAccount: testAccount{
|
||||||
|
@ -342,8 +342,8 @@ func (s *ManagerTestSuite) TestCreateChildAccount() {
|
||||||
s.Error(err)
|
s.Error(err)
|
||||||
} else {
|
} else {
|
||||||
s.NoError(err)
|
s.NoError(err)
|
||||||
s.NotNil(childAddr)
|
s.NotEmpty(childAddr)
|
||||||
s.NotNil(childPubKey)
|
s.NotEmpty(childPubKey)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue