From 6c15a941aee0b7e596b0accb96bd4cd30ea480a7 Mon Sep 17 00:00:00 2001 From: guillaumemichel Date: Fri, 24 Oct 2025 11:57:17 +0200 Subject: [PATCH] limit optimistic provide test to legacy provider --- test/cli/dht_opt_prov_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cli/dht_opt_prov_test.go b/test/cli/dht_opt_prov_test.go index b929ea75e..17b846dc7 100644 --- a/test/cli/dht_opt_prov_test.go +++ b/test/cli/dht_opt_prov_test.go @@ -17,13 +17,14 @@ func TestDHTOptimisticProvide(t *testing.T) { nodes[0].UpdateConfig(func(cfg *config.Config) { cfg.Experimental.OptimisticProvide = true + // Optimistic provide only works with the legacy provider. + cfg.Provide.DHT.SweepEnabled = config.False }) nodes.StartDaemons().Connect() hash := nodes[0].IPFSAddStr(string(random.Bytes(100))) nodes[0].IPFS("routing", "provide", hash) - waitUntilProvidesComplete(t, nodes[0]) res := nodes[1].IPFS("routing", "findprovs", "--num-providers=1", hash) assert.Equal(t, nodes[0].PeerID().String(), res.Stdout.Trimmed())