wallet: fix TestNewAccount
It duplicated TestNewFromWif.
This commit is contained in:
parent
9bb68d7025
commit
e96b4bc82e
1 changed files with 3 additions and 10 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue