Skip to content

Commit 4b5eaf2

Browse files
committed
merge with recent branch
1 parent 1704192 commit 4b5eaf2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/issues/test_88_random_error.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ async def client(read_stream, write_stream, scope):
8484
# - Long enough for fast operations (>10ms)
8585
# - Short enough for slow operations (<200ms)
8686
# - Not too short to avoid flakiness
87-
async with ClientSession(read_stream, write_stream, read_timeout_seconds=timedelta(milliseconds=50)) as session:
87+
async with ClientSession(
88+
read_stream,
89+
write_stream,
90+
# Increased to 150ms to avoid flakiness on slower platforms
91+
read_timeout_seconds=timedelta(milliseconds=150),
92+
) as session:
93+
# async with ClientSession(read_stream, write_stream, read_timeout_seconds=timedelta(milliseconds=50)) as session:
8894
await session.initialize()
8995

9096
# First call should work (fast operation)

tests/shared/test_streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ async def run_tool():
11111111
# Wait for the tool to start and at least one notification
11121112
# and then kill the task group
11131113
while not tool_started or not captured_resumption_token:
1114-
await anyio.sleep(0.05)
1114+
await anyio.sleep(0.1)
11151115
tg.cancel_scope.cancel()
11161116

11171117
# Store pre notifications and clear the captured notifications

0 commit comments

Comments
 (0)