Skip to content

Commit 3637252

Browse files
iabdalkaderdpgeorge
authored andcommitted
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy