mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 20:20:29 +00:00
verify accounts in TestAddressToDecryptedAccount
This commit is contained in:
parent
f31fcd6c90
commit
ca5b34afb7
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user