Hitting this limit too often on congested VMs, so let's increase the sleep
sleep (so the system can get done what needs to be done) and get the whole
timeout from 600ms to 2000ms.
Note: if we really hit 2000ms we may still fail on some tests with the check's
default 3 second timeout.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
litest_assert_ptr_notnull(device);
while (device && !udev_device_get_property_value(device, "ID_INPUT")) {
loop_count++;
- litest_assert_int_lt(loop_count, 300);
+ litest_assert_int_lt(loop_count, 200);
udev_device_unref(device);
- msleep(2);
+ msleep(10);
device = udev_device_new_from_devnum(udev, 'c', st.st_rdev);
}