The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): reap the launchd wrapper's process group if the macOS wrapper test times out
kshitijk4poorf74183a2517c
diff --git a/tests/hermes_cli/test_gateway_service.py b/tests/hermes_cli/test_gateway_service.pyindex b983039c0a6..366e31f8d1b 100644--- a/tests/hermes_cli/test_gateway_service.py+++ b/tests/hermes_cli/test_gateway_service.py@@ -5,6 +5,7 @@ import osimport plistlibimport reimport shlex+import signalimport subprocessimport sysfrom pathlib import Path@@ -1794,7 +1795,14 @@ class TestProfileArg:launchd_program_arguments(command, stdout_log, stderr_log), start_new_session=True)- assert wrapper.wait(timeout=10) == 23+ try:+ returncode = wrapper.wait(timeout=10)+ finally:+ if wrapper.poll() is None:+ os.killpg(wrapper.pid, signal.SIGKILL)+ wrapper.wait()++ assert returncode == 23assert int(stdout_log.read_text()) == wrapper.pidassert stderr_log.read_text() == ""