test(mcp): accept persistent_session in call_tool doubles

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-23 14:36:38 +00:00
parent f9bd1a37c7
commit 37d925cfe8
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ def _make_server(server_id: str, max_concurrent_requests: Optional[int]) -> MCPS
def _patch_client_with_tracker(manager: MCPServerManager, tracker: _ConcurrencyTracker):
async def fake_create_mcp_client(server, **kwargs):
class _ProbeClient:
async def call_tool(self, params, host_progress_callback=None):
async def call_tool(self, params, host_progress_callback=None, persistent_session=None):
tracker.enter(server.server_id)
try:
await asyncio.sleep(HOLD_SECONDS)

View file

@ -6731,7 +6731,7 @@ class TestMCPServerManager:
# Create mock client that tracks call_tool usage
mock_client = AsyncMock()
async def mock_call_tool(params, host_progress_callback=None):
async def mock_call_tool(params, host_progress_callback=None, persistent_session=None):
# Return a mock CallToolResult
result = MagicMock(spec=CallToolResult)
result.content = [{"type": "text", "text": "Tool executed successfully"}]