fix the inline key test

RandTestKeyPair uses RSA keys but we now forbid any RSA key under 512 bits.
This commit is contained in:
Steven Allen 2018-11-02 15:24:44 -07:00
parent 6295e61c9f
commit 6c58e9f9fa

View File

@ -4,6 +4,7 @@ import (
"sort"
"testing"
ic "github.com/libp2p/go-libp2p-crypto"
peer "github.com/libp2p/go-libp2p-peer"
pt "github.com/libp2p/go-libp2p-peer/test"
@ -144,7 +145,7 @@ func testInlinedPubKeyAddedOnRetrieve(kb pstore.KeyBook) func(t *testing.T) {
}
// Key small enough for inlining.
_, pub, err := pt.RandTestKeyPair(32)
_, pub, err := ic.GenerateKeyPair(ic.Ed25519, 256)
if err != nil {
t.Error(err)
}