test: require status gateway warning · openclaw/openclaw@127fdb6
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1241,7 +1241,7 @@ describe("statusCommand", () => {
|
1241 | 1241 | |
1242 | 1242 | await statusCommand({ json: true }, runtime as never); |
1243 | 1243 | const payload = JSON.parse(String(runtimeLogMock.mock.calls.at(-1)?.[0])); |
1244 | | -expect(payload.gateway.error ?? payload.gateway.authWarning ?? null).not.toBeNull(); |
| 1244 | +expect(payload.gateway.error ?? payload.gateway.authWarning).toEqual(expect.any(String)); |
1245 | 1245 | if (Array.isArray(payload.secretDiagnostics) && payload.secretDiagnostics.length > 0) { |
1246 | 1246 | expect( |
1247 | 1247 | payload.secretDiagnostics.some((entry: string) => entry.includes("gateway.auth.token")), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。