8000 multi_net: Increase asyncio tests timeouts. by iabdalkader · Pull Request #12370 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

multi_net: Increase asyncio tests timeouts. #12370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/multi_net/asyncio_tcp_close_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
4 changes: 2 additions & 2 deletions tests/multi_net/asyncio_tcp_readall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion tests/multi_net/asyncio_tcp_readexactly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
0