mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00: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:
parent
988ecc7420
commit
c66c688727
2 changed files with 1 additions and 2 deletions
|
|
@ -3380,7 +3380,6 @@ def cmd_update(args):
|
||||||
print("→ Restarting gateway service...")
|
print("→ Restarting gateway service...")
|
||||||
try:
|
try:
|
||||||
launchd_restart()
|
launchd_restart()
|
||||||
print("✓ Gateway restarted via launchd.")
|
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
stderr = (getattr(e, "stderr", "") or "").strip()
|
stderr = (getattr(e, "stderr", "") or "").strip()
|
||||||
print(f"⚠ Gateway restart failed: {stderr}")
|
print(f"⚠ Gateway restart failed: {stderr}")
|
||||||
|
|
|
||||||
|
|
@ -312,7 +312,7 @@ class TestCmdUpdateLaunchdRestart:
|
||||||
cmd_update(mock_args)
|
cmd_update(mock_args)
|
||||||
|
|
||||||
captured = capsys.readouterr().out
|
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
|
assert "Restart it with: hermes gateway run" not in captured
|
||||||
mock_launchd_restart.assert_called_once_with()
|
mock_launchd_restart.assert_called_once_with()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue