Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Fix: the root-argument tests give the app 30 seconds to exit, not 5, which the binary's start alone took on a loaded machine (the workspace's other tests running meanwhile), so they failed there; 30 still catches a desktop that started instead of exiting

Jürg Lehni494343c2749a
diff --git a/apps/vectorcraft/tests/automation_args.rs b/apps/vectorcraft/tests/automation_args.rs
index ffb8773ef..67e2ec846 100644
--- a/apps/vectorcraft/tests/automation_args.rs
+++ b/apps/vectorcraft/tests/automation_args.rs
@@ -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;