Add some margin to wait_for stopwatch.

This commit is contained in:
Florian Bruhin 2015-11-02 06:11:35 +01:00
parent 8e09fd929b
commit 6dc3b5de36

View File

@ -94,7 +94,7 @@ class TestWaitFor:
"""Using wait_for with the expected text.""" """Using wait_for with the expected text."""
pyproc.code = "import time; time.sleep(0.5); print('foobar')" pyproc.code = "import time; time.sleep(0.5); print('foobar')"
pyproc.start() pyproc.start()
with stopwatch(min_ms=500): with stopwatch(min_ms=300): # on Windows, this can be done faster...
pyproc.wait_for(data="foobar") pyproc.wait_for(data="foobar")
def test_other_text(self, pyproc): def test_other_text(self, pyproc):