mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
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:
@ -566,6 +566,7 @@ class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
|
|||||||
|
|
||||||
def test_claim_from_other_client_is_released_when_vanished(self):
|
def test_claim_from_other_client_is_released_when_vanished(self):
|
||||||
self.call_device_method_from_other_client('Claim', ['testuser'])
|
self.call_device_method_from_other_client('Claim', ['testuser'])
|
||||||
|
time.sleep(1)
|
||||||
self.device.Claim('(s)', 'testuser')
|
self.device.Claim('(s)', 'testuser')
|
||||||
self.device.Release()
|
self.device.Release()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user