From a3c1d6c0f556e164873f2f4d800aac876a77e119 Mon Sep 17 00:00:00 2001 From: Matthew James Sivak Date: Wed, 21 Oct 2026 19:00:52 +0200 Subject: [PATCH] LR-IMP-PREVIEW-READ: UI thumbnail tests stub the reduced loader too with_fs() now sets media.reduced_loader, which thumbnail jobs prefer over file_loader, so the render fixture's stub file_loader was bypassed: the job read the nonexistent audit.jpg and resizing_the_disk_cache_keeps_textures_and_skips_rebuilds got no texture (on every OS, not a flake). Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/render.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/src/render.rs b/crates/ui-egui/src/render.rs index 64ab067b7d..d04a764c20 100644 --- a/crates/ui-egui/src/render.rs +++ b/crates/ui-egui/src/render.rs @@ -1128,6 +1128,8 @@ mod thumbnail_tests { image.data.fill([0.3, 0.2, 0.1]); Ok((image, Default::default())) })); + // (`with_fs` sets the file system's thumbnail loader, which wins over `file_loader`: thumbnails use the stub too) + s.media.reduced_loader = None; s.catalog.apply(Op::AddPhoto { photo: Box::new(photo) }).unwrap(); let mut app = crate::LightcraftApp::new(s, crate::Services::default()); app.renderer.keep_pixels = true;