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:
Keith Adler
2026-05-06 13:56:48 -05:00
committed by Rob Bradford
parent 8e7be74680
commit 3db4c0f7b4

View File

@@ -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()),