From ba902f1d92df592e6645aa82922ca455c776f507 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 12 Nov 2015 20:29:06 +0100 Subject: [PATCH] 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. --- tests/integration/test_testprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_testprocess.py b/tests/integration/test_testprocess.py index 599234dc8..9738619f9 100644 --- a/tests/integration/test_testprocess.py +++ b/tests/integration/test_testprocess.py @@ -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):