tests/multi_net: Increase asyncio tests timeouts.

Increase asyncio tests timeouts to account for different WiFi modules and
CPU clocks on different boards.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2023-09-05 10:53:30 +02:00 committed by Damien George
parent 0bafdaf5f0
commit 3637252b7b
3 changed files with 4 additions and 4 deletions

View File

@ -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():

View File

@ -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()
@ -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():

View File

@ -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()