mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-03-27 13:30:11 +08:00
fix the inline key test
RandTestKeyPair uses RSA keys but we now forbid any RSA key under 512 bits.
This commit is contained in:
parent
6295e61c9f
commit
6c58e9f9fa
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user