tests: Fix test_testprocess flakyness.
When we don't include the start time in the measurement, the subprocess will already start sleeping before we start measuring, which can lead to times measured which are around 260-300ms.
This commit is contained in:
parent
9c5ce8a688
commit
ba902f1d92
@ -85,8 +85,8 @@ class TestWaitFor:
|
||||
def test_successful(self, pyproc):
|
||||
"""Using wait_for with the expected text."""
|
||||
pyproc.code = "time.sleep(0.5); print('foobar')"
|
||||
pyproc.start()
|
||||
with stopwatch(min_ms=300): # on Windows, this can be done faster...
|
||||
with stopwatch(min_ms=500):
|
||||
pyproc.start()
|
||||
pyproc.wait_for(data="foobar")
|
||||
|
||||
def test_other_text(self, pyproc):
|
||||
|
Loading…
Reference in New Issue
Block a user