Browse Source

fix nano test

pull/1782/head
Ethan Buchman 7 years ago
parent
commit
8c61bb27b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nano/keys_test.go

+ 2
- 2
nano/keys_test.go View File

@ -83,7 +83,7 @@ func TestRealLedger(t *testing.T) {
} }
msg := []byte("kuhehfeohg") msg := []byte("kuhehfeohg")
priv, err := NewPrivKeyLedgerEd25519Ed25519()
priv, err := NewPrivKeyLedgerEd25519()
require.Nil(err, "%+v", err) require.Nil(err, "%+v", err)
pub := priv.PubKey() pub := priv.PubKey()
sig := priv.Sign(msg) sig := priv.Sign(msg)
@ -123,7 +123,7 @@ func TestRealLedgerErrorHandling(t *testing.T) {
// first, try to generate a key, must return an error // first, try to generate a key, must return an error
// (no panic) // (no panic)
_, err := NewPrivKeyLedgerEd25519Ed25519()
_, err := NewPrivKeyLedgerEd25519()
require.Error(err) require.Error(err)
led := PrivKeyLedgerEd25519{} // empty led := PrivKeyLedgerEd25519{} // empty


Loading…
Cancel
Save