From 567832c6fe98a868c42ecc3bb5f35dc051335f73 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Tue, 24 Mar 2026 11:01:54 +0000 Subject: [PATCH] fix: flaky test (#15614) --- codex-rs/core/src/agent/control_tests.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/codex-rs/core/src/agent/control_tests.rs b/codex-rs/core/src/agent/control_tests.rs index e25a58d78..38fbcbed5 100644 --- a/codex-rs/core/src/agent/control_tests.rs +++ b/codex-rs/core/src/agent/control_tests.rs @@ -965,7 +965,6 @@ async fn spawn_child_completion_notifies_parent_history() { } #[tokio::test] -#[ignore = "flaky on: rust-ci / Tests — windows-arm64 - aarch64-pc-windows-msvc"] async fn multi_agent_v2_completion_sends_inter_agent_message_to_direct_parent() { let harness = AgentControlHarness::new().await; let (root_thread_id, _) = harness.start_thread().await; @@ -1022,6 +1021,13 @@ async fn multi_agent_v2_completion_sends_inter_agent_message_to_direct_parent() ) .await; + let expected = InterAgentCommunication::new( + tester_path.clone(), + worker_path.clone(), + Vec::new(), + "done".to_string(), + ); + timeout(MULTI_AGENT_EVENTUAL_TIMEOUT, async { loop { let delivered = harness @@ -1033,10 +1039,7 @@ async fn multi_agent_v2_completion_sends_inter_agent_message_to_direct_parent() && matches!( op, Op::InterAgentCommunication { communication } - if communication.author == tester_path - && communication.recipient == worker_path - && communication.other_recipients.is_empty() - && communication.content == "done" + if communication == expected ) }); if delivered {