Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions trio/tests/test_dtls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down