Skip to content

The agent that grows with you

test(dashboard): the default-home gateway restart argv names -p default

teknium1146b5f8e76d9
diff --git a/tests/hermes_cli/test_dashboard_admin_endpoints.py b/tests/hermes_cli/test_dashboard_admin_endpoints.py
index 9efd110f279..6fb58018212 100644
--- a/tests/hermes_cli/test_dashboard_admin_endpoints.py
+++ b/tests/hermes_cli/test_dashboard_admin_endpoints.py
@@ -417,7 +417,8 @@ class TestWebhookEndpoints:
"restart_action": "gateway-restart",
"restart_pid": 4242,
}
- assert restart_calls == [(["gateway", "restart"], "gateway-restart")]
+ # The default home is named explicitly: a bare child would re-read the sticky active_profile.
+ assert restart_calls == [(["-p", "default", "gateway", "restart"], "gateway-restart")]
assert load_config()["platforms"]["webhook"]["enabled"] is True
assert self.client.get("/api/webhooks").json()["enabled"] is True
diff --git a/tests/hermes_cli/test_web_server.py b/tests/hermes_cli/test_web_server.py
index df01f948439..9f39a4b392b 100644
--- a/tests/hermes_cli/test_web_server.py
+++ b/tests/hermes_cli/test_web_server.py
@@ -1551,7 +1551,8 @@ CONFIG_SCHEMA = ProviderConfigSchema(
_web_server_gateway._ACTION_PROCS.pop("gateway-restart", None)
def fail_spawn_action(subcommand, name):
- assert subcommand == ["gateway", "restart"]
+ # The default home is named explicitly: a bare child would re-read the sticky active_profile.
+ assert subcommand == ["-p", "default", "gateway", "restart"]
assert name == "gateway-restart"
raise RuntimeError("supervisor unavailable")