diff --git a/tests/integration.rs b/tests/integration.rs index 496742a4b..30e0960a8 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -2398,13 +2398,10 @@ mod tests { .ssh_command("sudo shutdown -h now") .unwrap_or_default(); - thread::sleep(std::time::Duration::new(20, 0)); - // Check that the cloud-hypervisor binary actually terminated if let Ok(status) = child.wait() { aver_eq!(tb, status.success(), true); } - let _ = child.kill(); let _ = child.wait(); }); Ok(()) @@ -2460,7 +2457,6 @@ mod tests { if let Ok(status) = child.wait() { aver_eq!(tb, status.success(), true); } - let _ = child.kill(); let _ = child.wait(); Ok(()) });