diff --git a/crates/snowbound/src/manage.rs b/crates/snowbound/src/manage.rs index c9ccfc459c9e2dc726bbbc44ed4b7edbb00a38bf..b965b06a53a9cdb93768b72f617b8d5763407eff 100644 --- a/crates/snowbound/src/manage.rs +++ b/crates/snowbound/src/manage.rs @@ -1849,15 +1849,10 @@ mod tests { notebook::fs::rename(&folder, &away).unwrap(); let back = std::thread::spawn({ let (folder, away) = (folder.clone(), away.clone()); - move || { - std::thread::sleep(std::time::Duration::from_millis(100)); - notebook::fs::rename(away, folder).unwrap(); - } + move || notebook::fs::rename(away, folder).unwrap() }); - assert!(!super::vanished( - &folder, - std::time::Duration::from_millis(600) - )); + // The wait the app gives a missed folder, however loaded the machine running the test. + assert!(!super::vanished(&folder, super::VANISH)); back.join().unwrap(); notebook::fs::remove_dir_all(&folder).unwrap(); assert!(super::vanished(&folder, std::time::Duration::ZERO));