test: check daemon install messages · openclaw/openclaw@08acf80
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
src/commands/onboard-non-interactive/local
| Original file line number | Diff line number | Diff line change |
|---|
@@ -96,7 +96,11 @@ describe("installGatewayDaemonNonInteractive", () => {
|
96 | 96 | port: 18789, |
97 | 97 | }); |
98 | 98 | |
99 | | -expect(runtime.error).toHaveBeenCalledWith(expect.stringContaining("Gateway install blocked")); |
| 99 | +expect(runtime.error.mock.calls).toEqual([ |
| 100 | +[ |
| 101 | +"Gateway install blocked: gateway.auth.token SecretRef is configured but unresolved (boom). Fix gateway auth config/token input and rerun setup.", |
| 102 | +], |
| 103 | +]); |
100 | 104 | expect(runtime.exit).toHaveBeenCalledWith(1); |
101 | 105 | expect(buildGatewayInstallPlan).not.toHaveBeenCalled(); |
102 | 106 | expect(serviceInstall).not.toHaveBeenCalled(); |
@@ -124,9 +128,11 @@ describe("installGatewayDaemonNonInteractive", () => {
|
124 | 128 | installed: false, |
125 | 129 | skippedReason: "systemd-user-unavailable", |
126 | 130 | }); |
127 | | -expect(runtime.log).toHaveBeenCalledWith( |
128 | | -expect.stringContaining("Systemd user services are unavailable"), |
129 | | -); |
| 131 | +expect(runtime.log.mock.calls).toEqual([ |
| 132 | +[ |
| 133 | +"Systemd user services are unavailable; skipping service install. Use a direct shell run (`openclaw gateway run`) or rerun without --install-daemon on this session.", |
| 134 | +], |
| 135 | +]); |
130 | 136 | expect(buildGatewayInstallPlan).not.toHaveBeenCalled(); |
131 | 137 | expect(serviceInstall).not.toHaveBeenCalled(); |
132 | 138 | } finally { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。