wallet: fix TestNewAccount

It duplicated TestNewFromWif.
This commit is contained in:
Roman Khimov 2020-01-09 18:33:26 +03:00
parent 9bb68d7025
commit e96b4bc82e

View file

@ -10,16 +10,9 @@ import (
) )
func TestNewAccount(t *testing.T) { func TestNewAccount(t *testing.T) {
for _, testCase := range keytestcases.Arr { acc, err := NewAccount()
acc, err := NewAccountFromWIF(testCase.Wif) require.NoError(t, err)
if testCase.Invalid { require.NotNil(t, acc)
assert.Error(t, err)
continue
}
assert.NoError(t, err)
compareFields(t, testCase, acc)
}
} }
func TestDecryptAccount(t *testing.T) { func TestDecryptAccount(t *testing.T) {