Add some margin to wait_for stopwatch.
This commit is contained in:
parent
8e09fd929b
commit
6dc3b5de36
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user