Commit 34100c24 authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: bigger delays to avoid timing errors

parent 0d734c88
......@@ -272,10 +272,10 @@ class GenericWaitTestCase(TestCase):
def test_returns_none_after_timeout(self):
start = time.time()
result = self.wait(timeout=0.001)
result = self.wait(timeout=0.01)
# join and wait simply returns after timeout expires
delay = time.time() - start
assert 0.001 - 0.0001 <= delay < 0.001 + 0.001 + 0.01, delay
assert 0.01 - 0.001 <= delay < 0.01 + 0.01, delay
assert result is None, repr(result)
......
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