Skip to content

Commit

Permalink
Fix timeouts for loaded machines and parallel tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
martinpitt committed Mar 13, 2019
1 parent 002890c commit f3b9d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbusmock/testcase.py
Expand Up @@ -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.
'''
Expand Down

0 comments on commit f3b9d61

Please sign in to comment.