test: Allow daemon to take 5 seconds for shutdown

It seems like shutdown can take more than 2 seconds on some slow
systems. So increase to 5 seconds which hopefully is long enough.

Closes: #188
This commit is contained in:
Benjamin Berg 2022-05-20 14:35:23 +02:00
parent c64b020f99
commit f1c00e50c2

View file

@ -231,7 +231,7 @@ class Tests(dbusmock.DBusTestCase):
except OSError:
pass
try:
self.assertEqual(self.daemon.wait(timeout=2.0), 0)
self.assertEqual(self.daemon.wait(timeout=5.0), 0)
except subprocess.TimeoutExpired:
try:
self.daemon.kill()