From 28d3ef17e8aef6c69df0e934db91e6fdab6af407 Mon Sep 17 00:00:00 2001 From: guillaumemichel Date: Wed, 27 Aug 2025 14:11:15 +0200 Subject: [PATCH] add delay in provider tests for dht bootstrap --- test/cli/provider_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/cli/provider_test.go b/test/cli/provider_test.go index 6988ef558..1fc905d7b 100644 --- a/test/cli/provider_test.go +++ b/test/cli/provider_test.go @@ -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 {