Merge pull request #3286 from lehni/fix/automation-args-timeout

Root-argument tests: give the app 30 seconds to exit, not 5
This commit is contained in:
BFlat
2026-10-21 15:40:18 +07:00
committed by GitHub
+3 -1
View File
@@ -25,7 +25,9 @@ fn rejects_with_env(args: &[&str], env: &[(&str, &str)], message: &str) {
.stderr(Stdio::piped())
.spawn()
.unwrap();
let deadline = Instant::now() + Duration::from_secs(5);
// Long enough for the binary to start on a loaded machine (the workspace's other tests run
// meanwhile), short enough to catch a desktop that started instead of exiting.
let deadline = Instant::now() + Duration::from_secs(30);
let timed_out = loop {
if child.try_wait().unwrap().is_some() {
break false;