mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests: Give fprintd some more time to be ready
While the delay inhibitor is grabbed almost immediately, this can be slow enough to not have happened immediately after the bus name has been registered. Add a generous timeout to prevent issues.
This commit is contained in:
@ -615,7 +615,7 @@ class FPrintdVirtualDeviceBaseTest(FPrintdVirtualImageDeviceBaseTests):
|
|||||||
'GLib.idle_add(lambda fd: os.close(fd), ret)')
|
'GLib.idle_add(lambda fd: os.close(fd), ret)')
|
||||||
self.daemon_start(self.driver_name)
|
self.daemon_start(self.driver_name)
|
||||||
|
|
||||||
self.wait_got_delay_inhibitor()
|
self.wait_got_delay_inhibitor(timeout=5)
|
||||||
|
|
||||||
if self.device is None:
|
if self.device is None:
|
||||||
self.skipTest("Need {} device to run the test".format(self.device_driver))
|
self.skipTest("Need {} device to run the test".format(self.device_driver))
|
||||||
|
|||||||
Reference in New Issue
Block a user