From b069b9a1213c9f6d359ad2790b5ca677d524b8b7 Mon Sep 17 00:00:00 2001 From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> Date: Sun, 18 Oct 2026 07:36:37 +0900 Subject: [PATCH] test(verify): soak holds end before the stimulus does at any length --- crates/verify/tests/recording.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/verify/tests/recording.rs b/crates/verify/tests/recording.rs index 5ad4ff5d698..ae0432824c0 100644 --- a/crates/verify/tests/recording.rs +++ b/crates/verify/tests/recording.rs @@ -322,7 +322,12 @@ fn soak_specs() -> Vec { }, seconds, stimulus_fps: STIMULUS_FPS_30, - holds: vec![(seconds / 3.0, 3.0), (2.0 * seconds / 3.0, 10.0)], + // Every hold ends by five sixths of the length: the stimulus + // cannot show its last picture during one. + holds: vec![ + (seconds / 3.0, (seconds / 10.0).min(3.0)), + (2.0 * seconds / 3.0, (seconds / 6.0).min(10.0)), + ], camera_drops_at: vec![], gated: true, mic_delay: 0.0, @@ -335,7 +340,7 @@ fn soak_specs() -> Vec { mode: Mode::Instant, seconds, stimulus_fps: STIMULUS_FPS_30, - holds: vec![(seconds / 2.0, 5.0)], + holds: vec![(seconds / 2.0, (seconds / 6.0).min(5.0))], camera_drops_at: vec![], gated: true, mic_delay: 0.0,