From 6ce30e158b2e2beb6ad4b78b4f92cce06062b105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Tue, 19 Dec 2017 15:19:40 +0300 Subject: [PATCH] remove extra lines & rename whisper service var --- geth/account/accounts_test.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/geth/account/accounts_test.go b/geth/account/accounts_test.go index 5c841294b..394f035a7 100644 --- a/geth/account/accounts_test.go +++ b/geth/account/accounts_test.go @@ -149,7 +149,6 @@ func TestCreateAndRecoverAccountSuccess(t *testing.T) { nodeManager.EXPECT().AccountKeyStore().Return(keyStore, nil) addr1, pubKey1, mnemonic, err := accManager.CreateAccount(password) require.NoError(t, err) - require.NotNil(t, addr1) require.NotNil(t, pubKey1) require.NotNil(t, mnemonic) @@ -158,7 +157,6 @@ func TestCreateAndRecoverAccountSuccess(t *testing.T) { nodeManager.EXPECT().AccountKeyStore().Return(keyStore, nil) addr2, pubKey2, err := accManager.RecoverAccount(password, mnemonic) require.NoError(t, err) - require.Equal(t, addr1, addr2) require.Equal(t, pubKey1, pubKey2) } @@ -198,7 +196,7 @@ func TestSelectAccount(t *testing.T) { addr, _, _, err := accManager.CreateAccount(password) require.NoError(t, err) - w := whisper.New(nil) + shh := whisper.New(nil) testCases := []struct { name string @@ -211,7 +209,7 @@ func TestSelectAccount(t *testing.T) { { "success", []interface{}{keyStore, nil}, - []interface{}{w, nil}, + []interface{}{shh, nil}, addr, password, false, @@ -219,7 +217,7 @@ func TestSelectAccount(t *testing.T) { { "fail_keyStore", []interface{}{nil, errors.New("Can't return you a key store")}, - []interface{}{w, nil}, + []interface{}{shh, nil}, addr, password, true, @@ -235,7 +233,7 @@ func TestSelectAccount(t *testing.T) { { "fail_wrongAddress", []interface{}{keyStore, nil}, - []interface{}{w, nil}, + []interface{}{shh, nil}, "wrong-address", password, true, @@ -243,7 +241,7 @@ func TestSelectAccount(t *testing.T) { { "fail_wrongPassword", []interface{}{keyStore, nil}, - []interface{}{w, nil}, + []interface{}{shh, nil}, addr, "wrong-password", true,