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:
fjamespriceandClaude Opus 5.5 committed 2026-10-20 00:44:33 -04:00
1 parent bdf2e6cb31
commit c57947d6d8
1 file changed
+3
+3
View File
@@ -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);
}