Skip to content
Snippets Groups Projects
Commit 4780c651 authored by Jeromy Johnson's avatar Jeromy Johnson
Browse files

mark other nodes in routing table on test-connect


License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 8668f409
Branches
No related tags found
1 merge request!1New
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment