Browse Source

Fix no-Ledger testcase

pull/1782/head
Christopher Goes 7 years ago
parent
commit
065c3943b1
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      ledger_test.go

+ 0
- 14
ledger_test.go View File

@ -55,18 +55,4 @@ func TestRealLedgerErrorHandling(t *testing.T) {
// (no panic)
_, err := NewPrivKeyLedgerSecp256k1()
require.Error(t, err)
led := PrivKeyLedgerSecp256k1{} // empty
// or with some pub key
ed := GenPrivKeySecp256k1()
led2 := PrivKeyLedgerSecp256k1{CachedPubKey: ed.PubKey()}
// loading these should return errors
bs := led.Bytes()
_, err = PrivKeyFromBytes(bs)
require.Error(t, err)
bs = led2.Bytes()
_, err = PrivKeyFromBytes(bs)
require.Error(t, err)
}

Loading…
Cancel
Save