Skip to content

Commit 3637252

Browse files
iabdalkaderdpgeorge
authored andcommittedSep 6, 2023
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>
1 parent 0bafdaf commit 3637252

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎tests/multi_net/asyncio_tcp_close_write.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def tcp_server():
3333
print("server running")
3434
multitest.next()
3535
async with server:
36-
await asyncio.wait_for(ev.wait(), 5)
36+
await asyncio.wait_for(ev.wait(), 10)
3737

3838

3939
async def tcp_client():

‎tests/multi_net/asyncio_tcp_readall.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def handle_connection(reader, writer):
1414
await writer.drain()
1515

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

1919
writer.write(b"b")
2020
await writer.drain()
@@ -37,7 +37,7 @@ async def tcp_server():
3737
print("server running")
3838
multitest.next()
3939
async with server:
40-
await asyncio.wait_for(ev.wait(), 2)
40+
await asyncio.wait_for(ev.wait(), 10)
4141

4242

4343
async def tcp_client():

‎tests/multi_net/asyncio_tcp_readexactly.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def handle_connection(reader, writer):
1414
await writer.drain()
1515

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

1919
writer.write(b"b")
2020
await writer.drain()

0 commit comments

Comments
 (0)
Please sign in to comment.