From 3637252b7bc3e85ea92038161e008a550991d1f4 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 5 Sep 2023 10:53:30 +0200 Subject: [PATCH] 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 --- tests/multi_net/asyncio_tcp_close_write.py | 2 +- tests/multi_net/asyncio_tcp_readall.py | 4 ++-- tests/multi_net/asyncio_tcp_readexactly.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/multi_net/asyncio_tcp_close_write.py b/tests/multi_net/asyncio_tcp_close_write.py index d1892fe895..ea206c9219 100644 --- a/tests/multi_net/asyncio_tcp_close_write.py +++ b/tests/multi_net/asyncio_tcp_close_write.py @@ -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(): diff --git a/tests/multi_net/asyncio_tcp_readall.py b/tests/multi_net/asyncio_tcp_readall.py index 66ad97549c..45eac229d2 100644 --- a/tests/multi_net/asyncio_tcp_readall.py +++ b/tests/multi_net/asyncio_tcp_readall.py @@ -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(): diff --git a/tests/multi_net/asyncio_tcp_readexactly.py b/tests/multi_net/asyncio_tcp_readexactly.py index 2c8df1f30a..4024e23fed 100644 --- a/tests/multi_net/asyncio_tcp_readexactly.py +++ b/tests/multi_net/asyncio_tcp_readexactly.py @@ -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()