Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Batch 37: the contact-sheet export test's deadline is a hang guard (it queues behind other tests' demo scenes)

Brandon Thomasb00d7c02679c
diff --git a/crates/ui-egui/src/export_task.rs b/crates/ui-egui/src/export_task.rs
index 7ac6a838a..1aec84820 100644
--- a/crates/ui-egui/src/export_task.rs
+++ b/crates/ui-egui/src/export_task.rs
@@ -341,7 +341,9 @@ mod contact_sheet_tests {
crate::pick::poll(&mut app, &ctx);
assert!(app.pending_picks.is_empty());
assert!(app.export.is_some(), "picker did not start export: {:?}", app.ui.toast);
- let deadline = Instant::now() + Duration::from_secs(90);
+ // a hang guard, not a speed check: the render queues behind other tests' demo scenes (generated one at a
+ // time process-wide), which on a loaded machine takes minutes
+ let deadline = Instant::now() + Duration::from_secs(300);
loop {
// Poll the real worker without starting unrelated gallery renders each frame.
poll(&mut app, &ctx);