Skip to content

Commit 4f1a8b3

Browse files
authored
test: remove broken MCP transport timeout test (#1635)
1 parent 1334349 commit 4f1a8b3

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

tests_integ/mcp/test_mcp_client.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -398,30 +398,6 @@ def slow_transport():
398398
assert len(tools) >= 0 # Should work now
399399

400400

401-
@pytest.mark.skipif(
402-
condition=os.environ.get("GITHUB_ACTIONS") == "true",
403-
reason="streamable transport is failing in GitHub actions, debugging if linux compatibility issue",
404-
)
405-
@pytest.mark.asyncio
406-
async def test_streamable_http_mcp_client_times_out_before_tool():
407-
"""Test an mcp server that timesout before the tool is able to respond."""
408-
server_thread = threading.Thread(
409-
target=start_comprehensive_mcp_server, kwargs={"transport": "streamable-http", "port": 8001}, daemon=True
410-
)
411-
server_thread.start()
412-
time.sleep(2) # wait for server to startup completely
413-
414-
def transport_callback() -> MCPTransport:
415-
return streamablehttp_client(sse_read_timeout=2, url="http://127.0.0.1:8001/mcp")
416-
417-
streamable_http_client = MCPClient(transport_callback)
418-
with streamable_http_client:
419-
# Test tools
420-
result = await streamable_http_client.call_tool_async(tool_use_id="123", name="timeout_tool")
421-
assert result["status"] == "error"
422-
assert result["content"][0]["text"] == "Tool execution failed: Connection closed"
423-
424-
425401
def start_5xx_proxy_for_tool_calls(target_url: str, proxy_port: int):
426402
"""Starts a proxy that throws a 5XX when a tool call is invoked"""
427403
import aiohttp

0 commit comments

Comments
 (0)