MCPcopy Create free account
hub / github.com/IBM/mcp-cli / always_fail

Method always_fail

tests/apps/test_host.py:387–388  ·  view source on GitHub ↗
(handler, host_addr, port)

Source from the content-addressed store, hash-verified

385 host = AppHostServer(FakeToolManager())
386
387 async def always_fail(handler, host_addr, port):
388 raise OSError("port in use")
389
390 with patch("asyncio.start_server", side_effect=always_fail):
391 with pytest.raises(RuntimeError, match="Could not find available port"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected