Merge pull request #44 from libp2p/fix/inline-test

fix the inline key test
This commit is contained in:
Steven Allen
2018-11-02 15:52:29 -07:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ sudo: false
language: go
go:
- 1.9.x
- 1.11.x
install:
- make deps

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)
}