Skip to content

Commit

Permalink
Give some more time to install the debugger
Browse files Browse the repository at this point in the history
This fails consistently on ci.  Perhaps it's cutting it too short.
Perhaps it's indicative that making this too fast will just lead to
flaky tests.
  • Loading branch information
flub committed Jun 16, 2020
1 parent 36bfb4c commit b1ef785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_pytest_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_suppresses_timeout_when_debugger_is_entered(
"""
import pytest, {debugging_module}
@pytest.mark.timeout(0.01)
@pytest.mark.timeout(0.1)
def test_foo():
{debugging_module}.{debugging_set_trace}
""".format(
Expand All @@ -452,7 +452,7 @@ def test_foo():
)
child = testdir.spawn_pytest(str(p1))
child.expect("test_foo")
time.sleep(2)
time.sleep(0.2)
child.send("c\n")
child.sendeof()
result = child.read().decode().lower()
Expand Down

0 comments on commit b1ef785

Please # to comment.