From 349d610c71374f2a9595754a0662c26c5c973dea Mon Sep 17 00:00:00 2001 From: ThatXliner Date: Fri, 4 Aug 2023 12:54:35 -0700 Subject: [PATCH] Update test_scenarios.py Should fix failing CI --- tests/test_scenarios.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_scenarios.py b/tests/test_scenarios.py index 9f9eed7..393ad09 100644 --- a/tests/test_scenarios.py +++ b/tests/test_scenarios.py @@ -31,7 +31,7 @@ async def test_timeout_isnt_too_low(data: bytes): async with aioudp.serve(host="localhost", port=9999, handler=echo_server): async with aioudp.connect("localhost", 9999) as connection: await connection.send(data) - await asyncio.wait_for(connection.recv(), timeout=0.001) == data + await asyncio.wait_for(connection.recv(), timeout=0.01) == data @given(data=st.binary()) @@ -42,7 +42,7 @@ async def test_bad_server(data: bytes): async with aioudp.connect("localhost", 9999) as connection: await connection.send(data) with pytest.raises(asyncio.TimeoutError): - await asyncio.wait_for(connection.recv(), timeout=0.001) + await asyncio.wait_for(connection.recv(), timeout=0.01) @given(data=st.binary()) @@ -53,7 +53,7 @@ async def test_no_send_data(data: bytes): async with aioudp.connect("localhost", 9999) as connection: await connection.send(data) with pytest.raises(asyncio.TimeoutError): - await asyncio.wait_for(connection.recv(), timeout=0.001) + await asyncio.wait_for(connection.recv(), timeout=0.01) @pytest.mark.asyncio