reduce error check in TestSelectAccount

This commit is contained in:
Caner Çıdam 2018-01-03 17:31:41 +03:00 committed by Frank Mueller
parent 83e71f3e4f
commit 813c6df5f0
1 changed files with 1 additions and 5 deletions

View File

@ -272,11 +272,7 @@ func (s *ManagerTestSuite) TestSelectAccount() {
s.nodeManager.EXPECT().AccountKeyStore().Return(testCase.accountKeyStoreReturn...).AnyTimes()
s.nodeManager.EXPECT().WhisperService().Return(testCase.whisperServiceReturn...).AnyTimes()
err := s.accManager.SelectAccount(testCase.address, testCase.password)
if testCase.expectedError != nil {
s.Equal(testCase.expectedError, err)
} else {
s.NoError(err)
}
s.Equal(testCase.expectedError, err)
})
}
}