From e96b4bc82e418c06933ce901a227fa1b5378586c Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 9 Jan 2020 18:33:26 +0300 Subject: [PATCH] wallet: fix TestNewAccount It duplicated TestNewFromWif. --- pkg/wallet/account_test.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pkg/wallet/account_test.go b/pkg/wallet/account_test.go index b82af7e24..da84055f2 100644 --- a/pkg/wallet/account_test.go +++ b/pkg/wallet/account_test.go @@ -10,16 +10,9 @@ import ( ) func TestNewAccount(t *testing.T) { - for _, testCase := range keytestcases.Arr { - acc, err := NewAccountFromWIF(testCase.Wif) - if testCase.Invalid { - assert.Error(t, err) - continue - } - - assert.NoError(t, err) - compareFields(t, testCase, acc) - } + acc, err := NewAccount() + require.NoError(t, err) + require.NotNil(t, acc) } func TestDecryptAccount(t *testing.T) {