Skip to content
Closed
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
7 changes: 2 additions & 5 deletions tests/server/mcpserver/test_url_elicitation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Test URL mode elicitation feature (SEP 1036)."""

import anyio
import pytest
from pydantic import BaseModel, Field

Expand Down Expand Up @@ -216,10 +215,8 @@ async def elicitation_callback(context: RequestContext[ClientSession], params: E
assert isinstance(result.content[0], TextContent)
assert result.content[0].text == "Elicitation completed"

# Give time for notification to be processed
await anyio.sleep(0.1)

# Verify the notification was sent
# Verify the notification was sent (flag is set inside the tool handler
# which completes before call_tool returns, so no wait needed)
assert notification_sent


Expand Down