mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
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 <sebastien.boeuf@intel.com>
This commit is contained in:
parent
7a8061818e
commit
fd40aceabb
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user