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

Method _raise_timeout

tests/apps/test_bridge.py:618–621  ·  view source on GitHub ↗
(coro, *, timeout)

Source from the content-addressed store, hash-verified

616 import unittest.mock as mock
617
618 def _raise_timeout(coro, *, timeout):
619 # Close the coroutine to suppress RuntimeWarning about unawaited coroutines
620 coro.close()
621 raise asyncio.TimeoutError
622
623 with mock.patch(
624 "mcp_cli.apps.bridge.asyncio.wait_for", side_effect=_raise_timeout

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected