mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
test_fprintd_utils: Don't use hard-coded sleep time
Make sleep time on verification dependent on the environment, so that it's different when under valgrind
This commit is contained in:
committed by
Bastien Nocera
parent
cfbded36e1
commit
d27872ff86
@ -146,7 +146,7 @@ class TestFprintd(dbusmock.DBusTestCase):
|
||||
self.assertRegex(out, r'left-little-finger')
|
||||
self.assertNotRegex(out, 'Verify result: verify-match \(done\)')
|
||||
|
||||
time.sleep(2)
|
||||
time.sleep(self.sleep_time * 4)
|
||||
|
||||
out = self.get_process_output(process)
|
||||
self.assertRegex(out, 'Verify result: verify-match \(done\)')
|
||||
|
||||
Reference in New Issue
Block a user