From 4eabb7e3e049e79de8843da50f0a1e28182ff5c1 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Thu, 5 Nov 2026 23:12:11 +0100 Subject: [PATCH] Tests: the next folder drop gets 20 seconds to land It checked the file on the frame after the drop, which failed on busy Windows runners. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/tests/folder_drop.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tests/folder_drop.rs b/crates/ui-egui/src/tests/folder_drop.rs index 11b5ae2f7f6..ba1dc5c501f 100644 --- a/crates/ui-egui/src/tests/folder_drop.rs +++ b/crates/ui-egui/src/tests/folder_drop.rs @@ -339,7 +339,9 @@ fn dont_ask_again_moves_the_next_drop_at_once() { let target = folder_row(&h, &home).unwrap(); drop_beach(&mut h, dunes, target); assert!(h.app.ui.dialog.is_none(), "not asked"); - assert!(home.join("dunes.png").is_file(), "moved at once"); + // no question comes first, but the file itself can take a moment on a busy machine + let moved = home.join("dunes.png"); + assert!(h.step_until(std::time::Duration::from_secs(20), |_| moved.is_file()), "moved without a question"); let _ = std::fs::remove_dir_all(&root); }