fix NotNil misuse

This commit is contained in:
Caner Çıdam 2017-12-26 16:32:41 +03:00 committed by Frank Mueller
parent 1daeeee4fd
commit f31fcd6c90
1 changed files with 5 additions and 5 deletions

View File

@ -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)
} }
}) })
} }