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:
Marco Trevisan (Treviño) 2020-02-14 18:18:51 +01:00 committed by Bastien Nocera
parent cfbded36e1
commit d27872ff86

View file

@ -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\)')