add delay in provider tests for dht bootstrap

This commit is contained in:
guillaumemichel 2025-08-27 14:11:15 +02:00
parent 1f668b9a43
commit 28d3ef17e8
No known key found for this signature in database
GPG Key ID: 612745DB2E6D0E15

View File

@ -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 {