tests: Remove explicit sleep from test_api_dbus_and_http_interleaved

Instead wait for the guest to stop responding on the SSH port.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-04-15 11:45:03 +01:00
parent 1269475c2a
commit 43b5a474f9

View File

@@ -5753,7 +5753,7 @@ mod dbus_api {
guest.ssh_command("sudo shutdown -H now").unwrap();
// Wait for the guest to be fully shutdown
thread::sleep(std::time::Duration::new(20, 0));
assert!(guest.wait_for_ssh_unresponsive(Duration::from_secs(20)));
// Then shutdown the VM
assert!(dbus_api.remote_command("shutdown", None));