Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tests]: Increase general wait/watcher timeout to 30s
  • Loading branch information
prologic committed Jul 26, 2016
1 parent c525fe7 commit b09baf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/conftest.py
Expand Up @@ -26,7 +26,7 @@ def _on_event(self, event, *args, **kwargs):
def clear(self):
self.events.clear()

def wait(self, name, channel=None, timeout=6.0):
def wait(self, name, channel=None, timeout=30.0):
for i in range(int(timeout / TIMEOUT)):
with self._lock:
for event in self.events:
Expand All @@ -37,7 +37,7 @@ def wait(self, name, channel=None, timeout=6.0):
else:
return False

def count(self, name, channel=None, n=1, timeout=6.0):
def count(self, name, channel=None, n=1, timeout=30.0):
n = 0
with self._lock:
for event in self.events:
Expand Down Expand Up @@ -68,7 +68,7 @@ def call_event(manager, event, *channels):

class WaitEvent(object):

def __init__(self, manager, name, channel=None, timeout=6.0):
def __init__(self, manager, name, channel=None, timeout=30.0):
if channel is None:
channel = getattr(manager, "channel", None)

Expand All @@ -94,7 +94,7 @@ def wait(self):
self.manager.removeHandler(self.handler)


def wait_for(obj, attr, value=True, timeout=3.0):
def wait_for(obj, attr, value=True, timeout=30.0):
from circuits.core.manager import TIMEOUT
for i in range(int(timeout / TIMEOUT)):
if isinstance(value, collections.Callable):
Expand Down

0 comments on commit b09baf2

Please sign in to comment.