From cec035c6e003966eb6c70893ce6d15ce0c4843f2 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Mon, 28 Mar 2022 09:28:31 -0700 Subject: [PATCH] tests: Increase timeout after vfio-user device hotplug As reported by the periodic CI runs, it may take more time for the NVMe device to present in the guest after being hotplugged as a VFIO user device on `aarch64` (especially under high load). Let's increase the timeout after device hotplug from `1s` to `10s` to increase the test stability. Fixes: #3495 Signed-off-by: Bo Chen --- tests/integration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 75b269376..23757dd42 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5810,7 +5810,7 @@ mod parallel { assert!(String::from_utf8_lossy(&cmd_output) .contains("{\"id\":\"vfio_user0\",\"bdf\":\"0000:00:06.0\"}")); - thread::sleep(std::time::Duration::new(1, 0)); + thread::sleep(std::time::Duration::new(10, 0)); // Check both if /dev/nvme exists and if the block size is 128M. assert_eq!(