fix: less error prone runner test

This commit is contained in:
Gabriele Musco 2023-07-08 15:41:18 +02:00
parent 317e526822
commit f38e2ce698
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -227,7 +227,7 @@ mod tests {
vec!["-c".into(), "echo \"REX2TEST: $REX2TEST\"".into()],
);
runner.start();
sleep(time::Duration::from_millis(10));
sleep(time::Duration::from_millis(1000)); // TODO: ugly, fix
runner.terminate();
assert_eq!(runner.status(), RunnerStatus::Stopped(Some(0)));
let out = runner.consume_output();