1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 23:42:20 +08:00

respect don contexteone

This commit is contained in:
Juan Batiz-Benet
2014-12-24 03:24:28 -08:00
parent f8c523fc3b
commit ccf6f79aa0
5 changed files with 49 additions and 24 deletions

View File

@ -265,7 +265,8 @@ func TestBootstrap(t *testing.T) {
}
t.Logf("bootstrapping them so they find each other", nDHTs)
bootstrap(t, ctx, dhts)
ctxT, _ := context.WithTimeout(ctx, 5*time.Second)
bootstrap(t, ctxT, dhts)
// the routing tables should be full now. let's inspect them.
t.Logf("checking routing table of %d", nDHTs)