mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: remove redundant hotplug sleep
The snapshot/restore hotplug path already waits for the exact device-removed event through the event monitor. Drop the fixed sleep before that poll so the test advances as soon as the event arrives. Signed-off-by: Keith Adler <kadler@cloudflare.com>
This commit is contained in:
committed by
Rob Bradford
parent
8e7be74680
commit
3db4c0f7b4
@@ -8013,7 +8013,6 @@ mod snapshot_restore_common {
|
||||
"remove-device",
|
||||
Some(net_id),
|
||||
));
|
||||
thread::sleep(std::time::Duration::new(10, 0));
|
||||
let latest_events = [&MetaEvent {
|
||||
event: "device-removed".to_string(),
|
||||
device_id: Some(net_id.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user