verify accounts in TestAddressToDecryptedAccount

This commit is contained in:
Caner Çıdam 2017-12-26 16:54:13 +03:00 committed by Frank Mueller
parent f31fcd6c90
commit ca5b34afb7
1 changed files with 4 additions and 2 deletions

View File

@ -474,13 +474,15 @@ func (s *ManagerTestSuite) TestAddressToDecryptedAccount() {
s.T().Run(testCase.name, func(t *testing.T) {
s.reinitMock()
s.nodeManager.EXPECT().AccountKeyStore().Return(testCase.accountKeyStoreReturn...).AnyTimes()
acc, keyStore, err := s.accManager.AddressToDecryptedAccount(testCase.address, testCase.password)
acc, key, err := s.accManager.AddressToDecryptedAccount(testCase.address, testCase.password)
if testCase.fail {
s.Error(err)
} else {
s.NoError(err)
s.NotNil(acc)
s.NotNil(keyStore)
s.NotNil(key)
s.Equal(acc.Address, key.Address)
s.keyStore.Find(acc)
}
})
}