Commit f3960056 authored by Jason Madden's avatar Jason Madden

sigh. increase more timeout allowances for appveyor.

parent e6103698
...@@ -515,7 +515,7 @@ class _DelayWaitMixin(object): ...@@ -515,7 +515,7 @@ class _DelayWaitMixin(object):
else: else:
# Timing resolution is extremely poor on Appveyor # Timing resolution is extremely poor on Appveyor
# and subject to jitter. # and subject to jitter.
_default_delay_max_adj = 0.98 _default_delay_max_adj = 1.5
def wait(self, timeout): def wait(self, timeout):
raise NotImplementedError('override me in subclass') raise NotImplementedError('override me in subclass')
...@@ -566,7 +566,8 @@ class GenericWaitTestCase(_DelayWaitMixin, TestCase): ...@@ -566,7 +566,8 @@ class GenericWaitTestCase(_DelayWaitMixin, TestCase):
_default_delay_max_adj = 0.11 _default_delay_max_adj = 0.11
else: else:
# Timing resolution is very poor on Appveyor # Timing resolution is very poor on Appveyor
_default_delay_max_adj = 0.9 # and subject to jitter
_default_delay_max_adj = 1.5
def test_returns_none_after_timeout(self): def test_returns_none_after_timeout(self):
result = self._wait_and_check() result = self._wait_and_check()
......
...@@ -28,7 +28,7 @@ def expected_time(expected, fuzzy=None): ...@@ -28,7 +28,7 @@ def expected_time(expected, fuzzy=None):
assert expected - fuzzy <= elapsed <= expected + fuzzy, 'Expected: %r; elapsed: %r; fuzzy %r' % (expected, elapsed, fuzzy) assert expected - fuzzy <= elapsed <= expected + fuzzy, 'Expected: %r; elapsed: %r; fuzzy %r' % (expected, elapsed, fuzzy)
def no_time(fuzzy=0.001): def no_time(fuzzy=(0.001 if not RUNNING_ON_APPVEYOR else 1.0)):
return expected_time(0, fuzzy=fuzzy) return expected_time(0, fuzzy=fuzzy)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment