Skip to content

Commit

Permalink
add verbose to TestFindProviderAsync (dual)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumemichel committed Feb 20, 2025
1 parent 09c631e commit bf28b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dual/dual_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func wait(ctx context.Context, t *testing.T, a, b *dht.IpfsDHT) {
// fmt.Fprintf(os.Stderr, "%v\n", a.RoutingTable().GetPeerInfos())
select {
case <-ctx.Done():
t.Fatal(ctx.Err())
t.Fatal("error while waiting for b to be included in a's routing table:", ctx.Err())
case <-time.After(time.Millisecond * 5):
}
}
Expand Down Expand Up @@ -218,11 +218,11 @@ func TestFindProviderAsync(t *testing.T) {
time.Sleep(5 * time.Millisecond)

if err := wan.Provide(ctx, wancid, false); err != nil {
t.Fatal(err)
t.Fatal("error while providing to wan:", err)
}

if err := lan.Provide(ctx, lancid, true); err != nil {
t.Fatal(err)
t.Fatal("error while providing to lan:", err)
}

wpc := d.FindProvidersAsync(ctx, wancid, 1)
Expand Down

0 comments on commit bf28b62

Please sign in to comment.