Skip to content

Commit 6564fae

Browse files
committedJul 19, 2015
comment for future @jbenet and @whyrusleeping's to understand reasoning
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent 4780c65 commit 6564fae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎routing/dht/dht_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func connect(t *testing.T, ctx context.Context, a, b *IpfsDHT) {
7979
t.Fatal(err)
8080
}
8181

82+
// loop until connection notification has been received.
83+
// under high load, this may not happen as immediately as we would like.
8284
for a.routingTable.Find(b.self) == "" {
8385
time.Sleep(time.Millisecond * 5)
8486
}

0 commit comments

Comments
 (0)
Please sign in to comment.