tests/fprintd: Fix claim_from_other_client_is_released_when_vanished on CI

test_claim_from_other_client_is_released_when_vanished would fail on
the CI but work on a local system because we wouldn't want long enough
for the "vanished" code path to be taken into account. Add a small
timeout to make sure it works on the CI as well.
This commit is contained in:
Bastien Nocera
2020-03-27 16:57:16 +01:00
parent 47bd3f7fbb
commit 6a1fffae82

View File

@ -566,6 +566,7 @@ class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
def test_claim_from_other_client_is_released_when_vanished(self):
self.call_device_method_from_other_client('Claim', ['testuser'])
time.sleep(1)
self.device.Claim('(s)', 'testuser')
self.device.Release()