From e1b09f696f046dd12e93dc9f822f551fc0fd2180 Mon Sep 17 00:00:00 2001 From: chexit Date: Fri, 20 Nov 2026 22:33:51 +0300 Subject: [PATCH] Give the two-raid scenario room for the last contact (#134) The maximum menu raid keeps a supersonic contact in the air past 5000 ticks under the new fire-authority rules; the recording closes only when the sky is clear. Run the scenario to 8000 ticks, still well inside its 20-minute cap, and keep the replay assertion. Co-Authored-By: Kimi Code --- airdef-core/tests/scenarios.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/airdef-core/tests/scenarios.rs b/airdef-core/tests/scenarios.rs index 6521c30..cd2005b 100644 --- a/airdef-core/tests/scenarios.rs +++ b/airdef-core/tests/scenarios.rs @@ -144,7 +144,9 @@ fn two_maximum_menu_raids_with_answered_flat_terrain() { let mut second = false; let mut overlap = false; let mut peak = 0; - for now in 1..=5000 { + // Two maximum menu raids can keep the last supersonic contact in the air past + // 5000 ticks under the radar profiles; the recording closes once the sky is clear. + for now in 1..=8000 { if !second && !sim.planning() { overlap = !sim.queue.is_empty() || sim.drones.iter().any(|d| d.alive()); assert_eq!(sim.order_raid(&order, &targets, &mut out), expected);