From d9e234bb2c8899b0e16d90bb96a272bafc6ff522 Mon Sep 17 00:00:00 2001 From: ScriptedAlchemy Date: Wed, 24 Jun 2026 20:24:01 +0000 Subject: [PATCH] test: relax startup catch-up waits on Windows CI --- tests/mcp_handler_test.rs | 6 +++--- tests/multi_mcp_coordination_test.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/mcp_handler_test.rs b/tests/mcp_handler_test.rs index e4c7e377..776c8194 100644 --- a/tests/mcp_handler_test.rs +++ b/tests/mcp_handler_test.rs @@ -11510,7 +11510,7 @@ async fn mcp_server_owns_watcher_and_refreshes_token_map_on_change() { let server = tracedecay::mcp::McpServer::new(cg.into_inner(), None).await; assert!( server - .wait_for_startup_catch_up(std::time::Duration::from_secs(2)) + .wait_for_startup_catch_up(std::time::Duration::from_secs(30)) .await, "startup catch-up sync should finish before mutating the project" ); @@ -12142,10 +12142,10 @@ async fn wait_for_startup_catch_up_waits_for_transcript_ingest_flag() { server.run_startup_catch_up_sync().await; let completed = server - .wait_for_startup_catch_up(std::time::Duration::from_secs(5)) + .wait_for_startup_catch_up(std::time::Duration::from_secs(30)) .await; - assert!(completed, "wait_for_startup_catch_up timed out after 5s"); + assert!(completed, "wait_for_startup_catch_up timed out after 30s"); // After the wait returns true, both flags must be set. assert!( diff --git a/tests/multi_mcp_coordination_test.rs b/tests/multi_mcp_coordination_test.rs index 50df929c..bae5677c 100644 --- a/tests/multi_mcp_coordination_test.rs +++ b/tests/multi_mcp_coordination_test.rs @@ -28,9 +28,9 @@ async fn two_mcps_on_same_project_coordinate_via_sync_lock() { for (label, server) in [("server1", &server1), ("server2", &server2)] { assert!( server - .wait_for_startup_catch_up(Duration::from_secs(10)) + .wait_for_startup_catch_up(Duration::from_secs(30)) .await, - "{label}: startup catch-up should finish within 10s" + "{label}: startup catch-up should finish within 30s" ); }