mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
test(camera-raw): settle() fails when the proxy worker's develop fails
poll_render clears the pending develop before it reports the worker's error, so previewPending turned false with no new frame and settle() returned as if one had landed. It now fails with the status message when the dialog reported an error. With the worker forced to fail, all 21 scope tests passed before this change; now the one that settles after a worker develop fails with "the Camera Raw preview worker failed". Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
bdf2e6cb31
commit
c57947d6d8
1 file changed
+3
@@ -51,6 +51,9 @@ fn settle(h: &mut Harness<'_, PhotocraftApp>) {
|
||||
std::thread::sleep(std::time::Duration::from_millis(2));
|
||||
h.run_steps(1);
|
||||
}
|
||||
// A failed worker develop also clears `previewPending`, without a new frame.
|
||||
let app = control::inspect(h.state(), &h.ctx);
|
||||
assert_ne!(app["statusError"], true, "the Camera Raw preview worker failed: {}", app["status"]);
|
||||
// The frame that picked up the result also rebuilt the scope; let it go quiet.
|
||||
h.run_steps(2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user