The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(computer-use): the embedded-daemon contract test observes the release-once-empty stop
kshitijk4poor33fc0a54ed91
diff --git a/tests/tools/test_computer_use_cua_0_10_permissions.py b/tests/tools/test_computer_use_cua_0_10_permissions.pyindex 990559f2335..7d3ed9ac79e 100644--- a/tests/tools/test_computer_use_cua_0_10_permissions.py+++ b/tests/tools/test_computer_use_cua_0_10_permissions.py@@ -8,7 +8,7 @@ from unittest.mock import AsyncMock, MagicMock, Mock, patchimport pytest-from tools.computer_use import cua_backend_driver+from tools.computer_use import cua_backend_daemon, cua_backend_driver@pytest.fixture(autouse=True)@@ -163,6 +163,10 @@ def test_unrestricted_embedded_daemon_uses_private_socket_and_two_part_ack():), patch("hermes_cli.process_identity._update_supervised_pgids") as supervise, patch(# A Mock pid must never reach the real owner-death supervisor or the spawn ledger."hermes_cli.process_identity.register_child"+ ), patch.object(+ # stop() releases the group once it is empty; the Mock process has no real group to probe.+ cua_backend_daemon, "release_process_group_once_empty",+ side_effect=lambda pgid, **kw: supervise("unregister", [pgid]),):daemon.start()command = popen.call_args.args[0]