From 15328b4db786bc1924e6f9eed0be0d48d39fa5b7 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 20 Aug 2026 22:20:34 -0700 Subject: [PATCH] test(gateway): accept all_profiles kwarg in macOS reaper _get_service_pids mocks --- tests/hermes_cli/test_gateway.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/hermes_cli/test_gateway.py b/tests/hermes_cli/test_gateway.py index 200ada6359..73fce456d5 100644 --- a/tests/hermes_cli/test_gateway.py +++ b/tests/hermes_cli/test_gateway.py @@ -580,7 +580,10 @@ class TestReapUnsupervisedGatewayOrphansMacOS: monkeypatch.setattr(gateway, "supports_systemd_services", lambda: False) # _get_service_pids returns the launchd-managed gateway PID. - monkeypatch.setattr(gateway, "_get_service_pids", lambda: {launchd_pid}) + # (accepts all_profiles: the reaper asks for the whole fleet, #74075) + monkeypatch.setattr( + gateway, "_get_service_pids", lambda all_profiles=False: {launchd_pid} + ) # No pidfile-recorded gateway in this scenario. monkeypatch.setattr("gateway.status.get_running_pid", lambda: None) @@ -613,7 +616,9 @@ class TestReapUnsupervisedGatewayOrphansMacOS: monkeypatch.setattr(gateway, "is_macos", lambda: True) monkeypatch.setattr(gateway, "supports_systemd_services", lambda: False) - monkeypatch.setattr(gateway, "_get_service_pids", lambda: {launchd_pid}) + monkeypatch.setattr( + gateway, "_get_service_pids", lambda all_profiles=False: {launchd_pid} + ) monkeypatch.setattr("gateway.status.get_running_pid", lambda: None) # find_gateway_pids would return the launchd PID, but it's excluded.