MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_timeout

Method test_timeout

tests/test_hook_executor.py:140–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138
139 @pytest.mark.asyncio
140 async def test_timeout(self):
141 hook = HookConfig(type="command", command="sleep 10", timeout=100)
142 result = await _execute_command_hook(
143 hook, {"hook_event": "PreToolUse"}, timeout_ms=100
144 )
145 assert result.exit_code == -1
146 assert result.blocking_error is not None
147 assert "timed out" in result.blocking_error.lower()
148
149 @pytest.mark.asyncio
150 async def test_stdin_data_passed(self):

Callers

nothing calls this directly

Calls 2

_execute_command_hookFunction · 0.90
HookConfigClass · 0.85

Tested by

no test coverage detected