reduce error check in TestSelectAccount
This commit is contained in:
parent
83e71f3e4f
commit
813c6df5f0
|
@ -272,11 +272,7 @@ func (s *ManagerTestSuite) TestSelectAccount() {
|
||||||
s.nodeManager.EXPECT().AccountKeyStore().Return(testCase.accountKeyStoreReturn...).AnyTimes()
|
s.nodeManager.EXPECT().AccountKeyStore().Return(testCase.accountKeyStoreReturn...).AnyTimes()
|
||||||
s.nodeManager.EXPECT().WhisperService().Return(testCase.whisperServiceReturn...).AnyTimes()
|
s.nodeManager.EXPECT().WhisperService().Return(testCase.whisperServiceReturn...).AnyTimes()
|
||||||
err := s.accManager.SelectAccount(testCase.address, testCase.password)
|
err := s.accManager.SelectAccount(testCase.address, testCase.password)
|
||||||
if testCase.expectedError != nil {
|
|
||||||
s.Equal(testCase.expectedError, err)
|
s.Equal(testCase.expectedError, err)
|
||||||
} else {
|
|
||||||
s.NoError(err)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue