From fd40aceabbcbc6f4917dc72dc627c7702171188a Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Thu, 24 Mar 2022 14:22:26 +0100 Subject: [PATCH] tests: Fix flakiness in test_vdpa_block() The test is sporadically failing whenever we try to hotplug the vDPA device we've just unplugged. This is causing the kernel to complain with EBUSY because the device hasn't been released yet. This is happening because the CI system is under very high load, therefore taking quite some time to the host to update the state of this device. The easy way to fix such issue is by increasing the sleep time between the unplug and the replug. Signed-off-by: Sebastien Boeuf --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index ce797d6bd..cf2297b9e 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5967,7 +5967,7 @@ mod parallel { // Unplug the device let cmd_success = remote_command(&api_socket, "remove-device", Some("myvdpa0")); assert!(cmd_success); - thread::sleep(std::time::Duration::new(10, 0)); + thread::sleep(std::time::Duration::new(30, 0)); // Check /dev/vdd doesn't exist anymore assert_eq!(