File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
"io"
6
6
"testing"
7
+ "time"
7
8
8
- "github.com/ipfs/interface-go-ipfs-core"
9
+ iface "github.com/ipfs/interface-go-ipfs-core"
9
10
"github.com/ipfs/interface-go-ipfs-core/options"
10
11
)
11
12
@@ -43,6 +44,8 @@ func (tp *TestSuite) TestDhtFindPeer(t *testing.T) {
43
44
t .Fatal ("unexpected number of local addrs" )
44
45
}
45
46
47
+ time .Sleep (3 * time .Second )
48
+
46
49
pi , err := apis [2 ].Dht ().FindPeer (ctx , self0 .ID ())
47
50
if err != nil {
48
51
t .Fatal (err )
@@ -88,6 +91,8 @@ func (tp *TestSuite) TestDhtFindProviders(t *testing.T) {
88
91
t .Fatal (err )
89
92
}
90
93
94
+ time .Sleep (3 * time .Second )
95
+
91
96
out , err := apis [2 ].Dht ().FindProviders (ctx , p , options .Dht .NumProviders (1 ))
92
97
if err != nil {
93
98
t .Fatal (err )
@@ -125,6 +130,8 @@ func (tp *TestSuite) TestDhtProvide(t *testing.T) {
125
130
126
131
p := s .Path ()
127
132
133
+ time .Sleep (3 * time .Second )
134
+
128
135
out , err := apis [2 ].Dht ().FindProviders (ctx , p , options .Dht .NumProviders (1 ))
129
136
if err != nil {
130
137
t .Fatal (err )
You can’t perform that action at this time.
0 commit comments