Skip to content

Commit eed8f19

Browse files
kxxtdelfick
authored andcommitted
test: fix flaky test on slow machines
Send the interrupt a little later so that we won't end up interrupting it too early, which will cause the output mismatch.
1 parent d3a8999 commit eed8f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def mktemp(s, p, **kwargs):
8888
matcher.fnmatch_lines(expected.split("\n"))
8989

9090

91-
@pytest.mark.async_timeout(5)
91+
@pytest.mark.async_timeout(7)
9292
@pytest.mark.skipif(os.name == "nt", reason="Can't use async subprocess on windows")
9393
async it "cleans up tests properly on interrupt":
9494
directory = os.path.join(this_dir, "interrupt_test")
@@ -108,7 +108,7 @@ def mktemp(s, p, **kwargs):
108108
stderr=subprocess.STDOUT,
109109
)
110110

111-
await asyncio.sleep(2)
111+
await asyncio.sleep(4)
112112
p.send_signal(signal.SIGINT)
113113
await p.wait()
114114

0 commit comments

Comments
 (0)