From 1daeeee4fd42c15cac1f9aa22f2fdf59e7cdfb00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Tue, 26 Dec 2017 16:25:54 +0300 Subject: [PATCH] few changes to TestSelectedAndReSelectAccount --- geth/account/accounts_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geth/account/accounts_test.go b/geth/account/accounts_test.go index c2fbde614..d1a20adbf 100644 --- a/geth/account/accounts_test.go +++ b/geth/account/accounts_test.go @@ -367,7 +367,7 @@ func (s *ManagerTestSuite) TestSelectedAndReSelectAccount() { s.NoError(err) }) - s.T().Run("ReSelect_fail", func(t *testing.T) { + s.T().Run("ReSelect_fail_whisper", func(t *testing.T) { s.reinitMock() s.nodeManager.EXPECT().WhisperService().Return(nil, testErrWhisper).AnyTimes() err = s.accManager.ReSelectAccount() @@ -377,9 +377,9 @@ func (s *ManagerTestSuite) TestSelectedAndReSelectAccount() { s.accManager.selectedAccount = nil s.reinitMock() s.nodeManager.EXPECT().AccountKeyStore().Return(s.keyStore, nil).AnyTimes() - s.nodeManager.EXPECT().WhisperService().Return(nil, testErrWhisper).AnyTimes() + s.nodeManager.EXPECT().WhisperService().Return(s.shh, nil).AnyTimes() - s.T().Run("Selected_fail", func(t *testing.T) { + s.T().Run("Selected_fail_noAccount", func(t *testing.T) { _, err := s.accManager.SelectedAccount() s.Equal(ErrNoAccountSelected, err) })