Skip to content

Commit

Permalink
Update test_scenarios.py
Browse files Browse the repository at this point in the history
Should fix failing CI
  • Loading branch information
ThatXliner authored Aug 4, 2023
1 parent 16a4988 commit 349d610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand All @@ -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
Expand Down

0 comments on commit 349d610

Please sign in to comment.