@cryptotaxi247 / kubo / commits / 3a48c5271

extra time for dht spin-up

This commit was moved from ipfs/interface-go-ipfs-core@9160e645322d5779c687e0e60cbec5a5932d5c27 This commit was moved from ipfs/boxo@0ed0b6f39d3ab3b20bd6dd2232de03a9513b139c

Will Scott committed Apr 21, 2020 at 08:40 UTC 3a48c527193cc7688f488da875bb065459a12809
1 file changed +8 -1
core/coreiface/tests/dht.go
+8 -1
@@ -4,8 +4,9 @@ import (
4 "context"
5 "io"
6 "testing"
7 + "time"
8
8 - "github.com/ipfs/interface-go-ipfs-core"
9 + iface "github.com/ipfs/interface-go-ipfs-core"
10 "github.com/ipfs/interface-go-ipfs-core/options"
11 )
12
@@ -43,6 +44,8 @@ func (tp *TestSuite) TestDhtFindPeer(t *testing.T) {
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)
@@ -88,6 +91,8 @@ func (tp *TestSuite) TestDhtFindProviders(t *testing.T) {
91 t.Fatal(err)
92 }
93
94 + time.Sleep(3 * time.Second)
95 +
96 out, err := apis[2].Dht().FindProviders(ctx, p, options.Dht.NumProviders(1))
97 if err != nil {
98 t.Fatal(err)
@@ -125,6 +130,8 @@ func (tp *TestSuite) TestDhtProvide(t *testing.T) {
130
131 p := s.Path()
132
133 + time.Sleep(3 * time.Second)
134 +
135 out, err := apis[2].Dht().FindProviders(ctx, p, options.Dht.NumProviders(1))
136 if err != nil {
137 t.Fatal(err)