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.