Skip to content

Commit

Permalink
fix whisper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Jul 18, 2019
1 parent 43794f4 commit 494f1d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/e2e/whisper/whisper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (s *WhisperTestSuite) TestSelectedAccountOnRestart() {
// make sure that no wallet account is selected by default
selectedWalletAccount, err := s.Backend.AccountManager().MainAccountAddress()
s.EqualError(account.ErrNoAccountSelected, err.Error(), "account selected, but should not be")
s.Nil(selectedWalletAccount)
s.Equal(common.Address{}, selectedWalletAccount)

// make sure that no chat account is selected by default
selectedChatAccount, err := s.Backend.AccountManager().SelectedChatAccount()
Expand Down Expand Up @@ -213,7 +213,7 @@ func (s *WhisperTestSuite) TestSelectedAccountOnRestart() {
selectedWalletAccount, err = s.Backend.AccountManager().MainAccountAddress()
s.NoError(err)
s.NotNil(selectedWalletAccount)
s.Equal(selectedWalletAccount, accountInfo2.WalletAddress, "incorrect wallet address selected")
s.Equal(selectedWalletAccount.String(), accountInfo2.WalletAddress, "incorrect wallet address selected")
selectedChatAccount, err = s.Backend.AccountManager().SelectedChatAccount()
s.NoError(err)
s.NotNil(selectedChatAccount)
Expand Down Expand Up @@ -241,7 +241,7 @@ func (s *WhisperTestSuite) TestSelectedAccountOnRestart() {

selectedWalletAccount, err = s.Backend.AccountManager().MainAccountAddress()
s.EqualError(account.ErrNoAccountSelected, err.Error())
s.Nil(selectedWalletAccount)
s.Equal(common.Address{}, selectedWalletAccount)

selectedChatAccount, err = s.Backend.AccountManager().SelectedChatAccount()
s.EqualError(account.ErrNoAccountSelected, err.Error())
Expand Down

0 comments on commit 494f1d1

Please sign in to comment.