We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3605d23 commit 4192351Copy full SHA for 4192351
tests/dht.go
@@ -4,6 +4,7 @@ import (
4
"context"
5
"io"
6
"testing"
7
+ "time"
8
9
"github.com/TRON-US/interface-go-btfs-core"
10
"github.com/TRON-US/interface-go-btfs-core/options"
@@ -43,6 +44,8 @@ func (tp *TestSuite) TestDhtFindPeer(t *testing.T) {
43
44
t.Fatal("unexpected number of local addrs")
45
}
46
47
+ time.Sleep(3 * time.Second)
48
+
49
pi, err := apis[2].Dht().FindPeer(ctx, self0.ID())
50
if err != nil {
51
t.Fatal(err)
@@ -125,6 +128,8 @@ func (tp *TestSuite) TestDhtProvide(t *testing.T) {
125
128
126
129
p := s.Path()
127
130
131
132
133
out, err := apis[2].Dht().FindProviders(ctx, p, options.Dht.NumProviders(1))
134
135
0 commit comments