mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-02 22:49:48 -06:00
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:
co-authored by
Claude Opus 5.5
parent
9ed971149b
commit
a3c1d6c0f5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user