Commit 9d3d61d3 authored by Jeromy's avatar Jeromy

mark other nodes in routing table on test-connect

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent d38793fc
......@@ -78,6 +78,14 @@ func connect(t *testing.T, ctx context.Context, a, b *IpfsDHT) {
if err := a.host.Connect(ctx, pi); err != nil {
t.Fatal(err)
}
for a.routingTable.Find(b.self) == "" {
time.Sleep(time.Millisecond * 5)
}
for b.routingTable.Find(a.self) == "" {
time.Sleep(time.Millisecond * 5)
}
}
func bootstrap(t *testing.T, ctx context.Context, dhts []*IpfsDHT) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment