From c57947d6d83388eee10f68ccd0ffdee875f1af14 Mon Sep 17 00:00:00 2001 From: fjamesprice Date: Tue, 20 Oct 2026 00:44:33 -0400 Subject: [PATCH] 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 --- crates/ui-egui/tests/camera_raw_scope.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ui-egui/tests/camera_raw_scope.rs b/crates/ui-egui/tests/camera_raw_scope.rs index 7ff12360775..418d59c6ecc 100644 --- a/crates/ui-egui/tests/camera_raw_scope.rs +++ b/crates/ui-egui/tests/camera_raw_scope.rs @@ -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); }