diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-09-05 10:53:30 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-09-06 12:09:19 +1000 |
| commit | 3637252b7bc3e85ea92038161e008a550991d1f4 (patch) | |
| tree | e20dc121bef134bb91eac827bdb0b8a62073dc19 | |
| parent | 0bafdaf5f0f44295597cf2db8c36447675183339 (diff) | |
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>
| -rw-r--r-- | tests/multi_net/asyncio_tcp_close_write.py | 2 | ||||
| -rw-r--r-- | tests/multi_net/asyncio_tcp_readall.py | 4 | ||||
| -rw-r--r-- | 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 d1892fe89..ea206c921 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 66ad97549..45eac229d 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 2c8df1f30..4024e23fe 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() |
