Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the autojump task #1588

Merged
merged 10 commits into from
Jun 9, 2020
Prev Previous commit
Next Next commit
Make sleep duration less over-the-top
njsmith committed Jun 9, 2020
commit c95f6f9d1d844ca53221cf276d5262a455c51641
6 changes: 4 additions & 2 deletions trio/_core/tests/test_guest_mode.py
Original file line number Diff line number Diff line change
@@ -483,7 +483,7 @@ def test_guest_mode_autojump_clock_threshold_changing():

clock = trio.testing.MockClock()

DURATION = 9999999
DURATION = 120

async def trio_main(in_host):
assert trio.current_time() == 0
@@ -494,4 +494,6 @@ async def trio_main(in_host):
start = time.monotonic()
trivial_guest_run(trio_main, clock=clock)
end = time.monotonic()
assert end - start < DURATION / 10
# Should be basically instantaneous, but we'll leave a generous buffer to
# account for any CI weirdness
assert end - start < DURATION / 2