From ae4e01adc92cbf9851d315ca0086ceb5d1db97cf Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 7 May 2021 14:42:31 +0200 Subject: [PATCH] tests: vfio: Increase time for memory hotplug Bump the sleep time before checking the guest RAM size from 10 to 30 seconds. This will help the VFIO baremetal CI passing more consistently. Fixes #2606 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 84ed9ceae..74abef3fe 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5951,7 +5951,7 @@ mod tests { // Add RAM to the VM let desired_ram = 6 << 30; resize_command(&api_socket, None, Some(desired_ram), None); - thread::sleep(std::time::Duration::new(10, 0)); + thread::sleep(std::time::Duration::new(30, 0)); assert!(guest.get_total_memory().unwrap_or_default() > 5_760_000); // Check the VFIO device works when RAM is increased to 6GiB