diff --git a/trio/tests/test_dtls.py b/trio/tests/test_dtls.py index e771d8acbe..1420ea43d1 100644 --- a/trio/tests/test_dtls.py +++ b/trio/tests/test_dtls.py @@ -3,7 +3,6 @@ import trio.testing from trio import DTLSEndpoint import random -import sys import attr from contextlib import asynccontextmanager from itertools import count @@ -102,11 +101,12 @@ async def test_smoke(ipv6): @slow async def test_handshake_over_terrible_network(autojump_clock): - # PyPy is not fast enough - HANDSHAKES = 500 if sys.implementation.name == "pypy" else 1000 + HANDSHAKES = 100 r = random.Random(0) fn = FakeNet() fn.enable() + # avoid spurious timeouts on slow machines + autojump_clock.autojump_threshold = 0.001 async with dtls_echo_server() as (_, address): async with trio.open_nursery() as nursery: