diff --git a/tests/tests.rs b/tests/tests.rs index 6730a28..1a68d46 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -60,6 +60,7 @@ fn server() { .expect("cannot run curl"); srv.kill().unwrap(); + srv.wait().expect("failed to wait on server process"); if !output.status.success() { let version_stdout = Command::new("curl") @@ -91,6 +92,7 @@ fn custom_ca_store() { .expect("cannot run client example"); srv.kill().unwrap(); + srv.wait().expect("failed to wait on server process"); if !rc.status.success() { assert_eq!(String::from_utf8_lossy(&rc.stdout), "");