From da7534a2edad975a976cc75d05adb487ebc0681e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 14 Oct 2026 22:28:53 -0400 Subject: [PATCH] Batch 36: the slideshow template test drops the cached listing after writing a file by hand (flaky when the write lands in the listing's clock tick) Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/tests_slide_template.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/engine/src/tests_slide_template.rs b/crates/engine/src/tests_slide_template.rs index 3adfcdcca..f7a899c43 100644 --- a/crates/engine/src/tests_slide_template.rs +++ b/crates/engine/src/tests_slide_template.rs @@ -265,6 +265,9 @@ fn bad_files_are_reported_and_skipped() { // out-of-range numbers in a hand-edited file are clamped, never applied as they are std::fs::write(folder.join("wild.json"), doc(json!({"layout": {"margins": 9, "shadowAngle": 1e300}, "playback": {"slideDuration": 1e9}}))) .unwrap(); + // written by hand, not through LightCraft: the folder's time may not have moved since the + // listing above (same clock tick), so the cached listing is dropped as a write would drop it + s.slide_templates_cache = None; let t = s.slide_template("user:wild").unwrap(); assert_eq!(t.look.layout.margin_left, lightcraft_slideshow::MARGIN_MAX); assert_eq!(t.look.playback.slide_duration, crate::slideshow::SLIDE_MAX);