From 2e9905f42f0f214e2d7c40c5346f80f114a2305d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 15:39:15 +0200 Subject: [PATCH] Verse call records: the in-flight test cannot hang when the first call is refused Two reserve mutants timed out because the test spun waiting for a call a mutant had refused. The wait is now bounded and fails. Builds: yes. Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/verse/calls/tests.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/ghostlight/src/verse/calls/tests.rs b/crates/ghostlight/src/verse/calls/tests.rs index 357fb59..eaecd1b 100644 --- a/crates/ghostlight/src/verse/calls/tests.rs +++ b/crates/ghostlight/src/verse/calls/tests.rs @@ -327,9 +327,13 @@ async fn calls_on_the_wire_hold_their_bound() { let port = port.clone(); tokio::spawn(async move { port.infer(prepared_for("held", 1_200)).await }) }; - while inner.calls() == 0 { - tokio::task::yield_now().await; - } + tokio::time::timeout(std::time::Duration::from_secs(5), async { + while inner.calls() == 0 { + tokio::task::yield_now().await; + } + }) + .await + .expect("the first call reached the provider"); // A second call that was let through would wait on the closed gate. let second = tokio::time::timeout( std::time::Duration::from_secs(5),