mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue