Skip to content

Commit 7855259

Browse files
committed
refactor: switch to non-deprecated version of Quorum option in dual dht test
1 parent 42b1ee4 commit 7855259

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dual/dual_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
record "github.com/libp2p/go-libp2p-record"
1616
swarmt "github.com/libp2p/go-libp2p-swarm/testing"
1717
bhost "github.com/libp2p/go-libp2p/p2p/host/basic"
18+
19+
dhtrouting "github.com/libp2p/go-libp2p-kad-dht/routing"
1820
)
1921

2022
var wancid, lancid cid.Cid
@@ -263,7 +265,7 @@ func TestSearchValue(t *testing.T) {
263265

264266
_ = wan.PutValue(ctx, "/v/hello", []byte("valid"))
265267

266-
valCh, err := d.SearchValue(ctx, "/v/hello", dht.Quorum(0))
268+
valCh, err := d.SearchValue(ctx, "/v/hello", dhtrouting.Quorum(0))
267269
if err != nil {
268270
t.Fatal(err)
269271
}
@@ -291,7 +293,7 @@ func TestSearchValue(t *testing.T) {
291293
t.Error(err)
292294
}
293295

294-
valCh, err = d.SearchValue(ctx, "/v/hello", dht.Quorum(0))
296+
valCh, err = d.SearchValue(ctx, "/v/hello", dhtrouting.Quorum(0))
295297
if err != nil {
296298
t.Fatal(err)
297299
}

0 commit comments

Comments
 (0)