From 6a1fffae827d70f4a9dbc2ebf653c78b1f4927ad Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 27 Mar 2020 16:57:16 +0100 Subject: [PATCH] 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. --- tests/fprintd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fprintd.py b/tests/fprintd.py index 0c771fa..3b3f779 100755 --- a/tests/fprintd.py +++ b/tests/fprintd.py @@ -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()