From 734c321c676e18db3c4724c4ba9300ced1d9ed57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 16 Aug 2026 06:15:38 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(engine):=20restore=20the=20pla?= =?UTF-8?q?yhead's=20own=20scene=20assertion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The probe teardown dropped the commit path's assertions by accident; the live path's stayed and passed, which is why nothing went red. Back in: the same source frame under the playhead after the write, and the minute moved with it. --- crates/engine/tests/speed.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/engine/tests/speed.rs b/crates/engine/tests/speed.rs index 28bafd2..a5c4330 100644 --- a/crates/engine/tests/speed.rs +++ b/crates/engine/tests/speed.rs @@ -400,6 +400,7 @@ fn a_2x_clip_keeps_the_beeps_pitch() { ); } + /// The playhead follows the re-rate: the source frame under it is the same /// frame after the write (the scene does not change with the rate), through /// the real session doors -- commit and the live samples of a drag both. @@ -416,6 +417,8 @@ fn the_playhead_follows_the_re_rate() { .expect("room for it"); let now = session.now(); let after = session.video_source_frame_at(now); + assert_eq!(before, after, "the same source frame is under the playhead"); + assert!((now - 1.0).abs() < 2.0 / FPS, "and the minute moved to {now}"); // The live path keeps it across the whole gesture: two samples of a drag // leave the same frame playing, not the one the rate walked past. session