mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
add delay in provider tests for dht bootstrap
This commit is contained in:
parent
1f668b9a43
commit
28d3ef17e8
@ -26,7 +26,9 @@ func runProviderSuite(t *testing.T, reprovide bool, apply cfgApplier) {
|
||||
nodes := harness.NewT(t).NewNodes(n).Init()
|
||||
nodes.ForEachPar(apply)
|
||||
nodes.ForEachPar(fn)
|
||||
return nodes.StartDaemons().Connect()
|
||||
nodes = nodes.StartDaemons().Connect()
|
||||
time.Sleep(500 * time.Millisecond) // wait for DHT clients to be bootstrapped
|
||||
return nodes
|
||||
}
|
||||
|
||||
initNodesWithoutStart := func(t *testing.T, n int, fn func(n *harness.Node)) harness.Nodes {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user