Skip to content

Commit 7b384a1

Browse files
committed
Increase wait time, to make test less flaky.
1 parent 3b7407b commit 7b384a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_subprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,15 +482,15 @@ def test_ambiguous_input(fp, fake):
482482
@pytest.mark.parametrize("fake", [False, True])
483483
def test_multiple_wait(fp, fake):
484484
"""
485-
Wait multiple times for 0.2 seconds with process lasting for 0.7.
485+
Wait multiple times for 0.2 seconds with process lasting for 1s.
486486
Third wait shall be a bit longer and will not raise an exception,
487487
due to exceeding the subprocess runtime.
488488
"""
489489
fp.allow_unregistered(not fake)
490490
if fake:
491491
fp.register(
492492
[PYTHON, "example_script.py", "wait"],
493-
wait=0.7,
493+
wait=1,
494494
)
495495

496496
process = subprocess.Popen(
@@ -502,7 +502,7 @@ def test_multiple_wait(fp, fake):
502502
with pytest.raises(subprocess.TimeoutExpired):
503503
process.wait(timeout=0.2)
504504

505-
process.wait(0.6)
505+
process.wait(0.9)
506506

507507
assert process.returncode == 0
508508

0 commit comments

Comments
 (0)