From 07fd38c358e7ef4a16857ac4707811dfe47d4bbe Mon Sep 17 00:00:00 2001 From: guillaumemichel Date: Tue, 27 Aug 2024 14:39:06 +0200 Subject: [PATCH] addressing boxo deprecated func --- go.mod | 3 +++ records_test.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 145482039..bfd3a80b2 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,7 @@ require ( github.com/ipfs/go-datastore v0.6.0 github.com/ipfs/go-detect-race v0.0.1 github.com/ipfs/go-log/v2 v2.5.1 + github.com/ipfs/go-test v0.0.4 github.com/libp2p/go-libp2p v0.36.2 github.com/libp2p/go-libp2p-kbucket v0.6.4 github.com/libp2p/go-libp2p-record v0.2.0 @@ -60,6 +61,8 @@ require ( github.com/gorilla/websocket v1.5.3 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/huin/goupnp v1.3.0 // indirect + github.com/ipfs/go-block-format v0.2.0 // indirect + github.com/ipfs/go-ipfs-util v0.0.3 // indirect github.com/ipfs/go-log v1.0.5 // indirect github.com/ipld/go-ipld-prime v0.21.0 // indirect github.com/jackpal/go-nat-pmp v1.0.2 // indirect diff --git a/records_test.go b/records_test.go index 659b00525..b6b44c6ee 100644 --- a/records_test.go +++ b/records_test.go @@ -10,6 +10,7 @@ import ( "github.com/libp2p/go-libp2p/core/test" u "github.com/ipfs/boxo/util" + "github.com/ipfs/go-test/random" record "github.com/libp2p/go-libp2p-record" tnet "github.com/libp2p/go-libp2p-testing/net" ci "github.com/libp2p/go-libp2p/core/crypto" @@ -151,7 +152,7 @@ func TestPubkeyNotFound(t *testing.T) { connect(t, ctx, dhtA, dhtB) - r := u.NewSeededRand(15) // generate deterministic keypair + r := random.NewSeededRand(15) // generate deterministic keypair _, pubk, err := ci.GenerateKeyPairWithReader(ci.RSA, 2048, r) if err != nil { t.Fatal(err)