tests: Remove explicit sleeps before killing vhost-user daemons

If we're about to kill the daemons we don't need to spin waiting for
them.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-04-15 08:59:42 +01:00
parent 2eafee69be
commit 52c24136b5

View File

@@ -663,7 +663,6 @@ pub(crate) fn test_vhost_user_net(
kill_child(&mut child);
let output = child.wait_with_output().unwrap();
thread::sleep(std::time::Duration::new(5, 0));
let _ = daemon_child.kill();
let _ = daemon_child.wait();
@@ -806,7 +805,6 @@ pub(crate) fn test_vhost_user_blk(
let output = child.wait_with_output().unwrap();
if let Some(mut daemon_child) = daemon_child {
thread::sleep(std::time::Duration::new(5, 0));
let _ = daemon_child.kill();
let _ = daemon_child.wait();
}
@@ -876,7 +874,6 @@ pub(crate) fn test_boot_from_vhost_user_blk(
let output = child.wait_with_output().unwrap();
if let Some(mut daemon_child) = daemon_child {
thread::sleep(std::time::Duration::new(5, 0));
let _ = daemon_child.kill();
let _ = daemon_child.wait();
}