mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix: remove redundant restart message from update launchd path
launchd_restart() already prints stop/start confirmation via its internal helpers — the extra 'Gateway restarted via launchd' line was redundant. Update test assertion to match.
This commit is contained in:
@@ -3380,7 +3380,6 @@ def cmd_update(args):
|
||||
print("→ Restarting gateway service...")
|
||||
try:
|
||||
launchd_restart()
|
||||
print("✓ Gateway restarted via launchd.")
|
||||
except subprocess.CalledProcessError as e:
|
||||
stderr = (getattr(e, "stderr", "") or "").strip()
|
||||
print(f"⚠ Gateway restart failed: {stderr}")
|
||||
|
||||
@@ -312,7 +312,7 @@ class TestCmdUpdateLaunchdRestart:
|
||||
cmd_update(mock_args)
|
||||
|
||||
captured = capsys.readouterr().out
|
||||
assert "Gateway restarted via launchd" in captured
|
||||
assert "Restarting gateway service" in captured
|
||||
assert "Restart it with: hermes gateway run" not in captured
|
||||
mock_launchd_restart.assert_called_once_with()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user