From f3b9d61d8ef032fadf7ebe3c3d32afe41f3bc129 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 13 Mar 2019 22:10:16 +0100 Subject: [PATCH] Fix timeouts for loaded machines and parallel tests With parallel tests or on loaded CI machines, the 5 second default timeout is too low, and tests run into strange failures. Bump the timeout to one minute by default. Fixes #47 --- dbusmock/testcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbusmock/testcase.py b/dbusmock/testcase.py index 1d46b103..2eeff0ff 100644 --- a/dbusmock/testcase.py +++ b/dbusmock/testcase.py @@ -153,10 +153,10 @@ def get_dbus(klass, system_bus=False): return dbus.SessionBus() @classmethod - def wait_for_bus_object(klass, dest, path, system_bus=False, timeout=50): + def wait_for_bus_object(klass, dest, path, system_bus=False, timeout=600): '''Wait for an object to appear on D-BUS - Raise an exception if object does not appear within 5 seconds. You can + Raise an exception if object does not appear within one minute. You can change the timeout with the "timeout" keyword argument which specifies deciseconds. '''