Skip to content

Commit

Permalink
tests/multi_net: Increase asyncio tests timeouts.
Browse files Browse the repository at this point in the history
Increase asyncio tests timeouts to account for different WiFi modules and
CPU clocks on different boards.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
  • Loading branch information
iabdalkader authored and dpgeorge committed Sep 6, 2023
1 parent 0bafdaf commit 3637252
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/multi_net/asyncio_tcp_close_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def tcp_server():
print("server running")
multitest.next()
async with server:
await asyncio.wait_for(ev.wait(), 5)
await asyncio.wait_for(ev.wait(), 10)


async def tcp_client():
Expand Down
4 changes: 2 additions & 2 deletions tests/multi_net/asyncio_tcp_readall.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def handle_connection(reader, writer):
await writer.drain()

# Split the first 2 bytes up so the client must wait for the second one
await asyncio.sleep(0.1)
await asyncio.sleep(1)

writer.write(b"b")
await writer.drain()
Expand All @@ -37,7 +37,7 @@ async def tcp_server():
print("server running")
multitest.next()
async with server:
await asyncio.wait_for(ev.wait(), 2)
await asyncio.wait_for(ev.wait(), 10)


async def tcp_client():
Expand Down
2 changes: 1 addition & 1 deletion tests/multi_net/asyncio_tcp_readexactly.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def handle_connection(reader, writer):
await writer.drain()

# Split the first 2 bytes up so the client must wait for the second one
await asyncio.sleep(0.1)
await asyncio.sleep(1)

writer.write(b"b")
await writer.drain()
Expand Down

0 comments on commit 3637252

Please sign in to comment.