comment for future @jbenet and @whyrusleeping's to understand reasoning
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Jul 19, 2015 at 16:32 UTC
6564fae65c54b942714ea69c1521071c9a4bd8ed
1 file changed
+2
routing/dht/dht_test.go
+2
@@ -79,6 +79,8 @@ func connect(t *testing.T, ctx context.Context, a, b *IpfsDHT) {
79
t.Fatal(err)
80
}
81
82
+ // loop until connection notification has been received.
83
+ // under high load, this may not happen as immediately as we would like.
84
for a.routingTable.Find(b.self) == "" {
85
time.Sleep(time.Millisecond * 5)
86
}