Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(verify): soak holds end before the stimulus does at any length

Richie McIlroyb069b9a1213c
diff --git a/crates/verify/tests/recording.rs b/crates/verify/tests/recording.rs
index 5ad4ff5d6..ae0432824 100644
--- a/crates/verify/tests/recording.rs
+++ b/crates/verify/tests/recording.rs
@@ -322,7 +322,12 @@ fn soak_specs() -> Vec<Spec> {
},
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<Spec> {
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,