Skip to content

Agent Mesh

test: increase DHT readiness timeout in integration federation tests to prevent CI flakes

Antonio Ojea1fb61a6f116a
diff --git a/tests/integration/federation_test.go b/tests/integration/federation_test.go
index f8a47ca7..f189d8df 100644
--- a/tests/integration/federation_test.go
+++ b/tests/integration/federation_test.go
@@ -295,7 +295,7 @@ func extractPeerID(maddrStr string) string {
func waitForDHTReady(t *testing.T, clientBin string, apiPort int, token string) {
t.Helper()
- deadline := time.Now().Add(10 * time.Second)
+ deadline := time.Now().Add(45 * time.Second)
cmdArgs := []string{
"-url", fmt.Sprintf("http://127.0.0.1:%d/mcp", apiPort),
"-token", token,