From 5d411d257a579a297c38b19ae1c4a8a3c69503f6 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 5 Dec 2023 09:44:02 -0800 Subject: [PATCH] tests: Stabilize snapshot_restore tests See: #5938 Signed-off-by: Bo Chen --- tests/integration.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index 5f2e582de..6a8b00685 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -687,6 +687,8 @@ fn resize_command( device_id: None, }, ]; + // See: #5938 + thread::sleep(std::time::Duration::new(1, 0)); assert!(check_latest_events_exact(&latest_events, event_path)); } @@ -5960,6 +5962,8 @@ mod common_parallel { event: "device-removed".to_string(), device_id: Some(net_id.to_string()), }]; + // See: #5938 + thread::sleep(std::time::Duration::new(1, 0)); assert!(check_latest_events_exact(&latest_events, &event_path)); // Plug the virtio-net device again @@ -5983,6 +5987,8 @@ mod common_parallel { device_id: None, }, ]; + // See: #5938 + thread::sleep(std::time::Duration::new(1, 0)); assert!(check_latest_events_exact(&latest_events, &event_path)); // Take a snapshot from the VM @@ -6005,6 +6011,8 @@ mod common_parallel { device_id: None, }, ]; + // See: #5938 + thread::sleep(std::time::Duration::new(1, 0)); assert!(check_latest_events_exact(&latest_events, &event_path)); });