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 <noreply@anthropic.com>
This commit is contained in:
Matthew James Sivak
2026-10-21 19:00:52 +02:00
co-authored by Claude Opus 5.5
parent 9ed971149b
commit a3c1d6c0f5
+2
View File
@@ -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;