test: bundle daemon secret warnings · openclaw/openclaw@71d2e41
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -417,7 +417,7 @@ describe("buildGatewayInstallPlan", () => {
|
417 | 417 | 'Exec SecretRef passEnv ref "HOME" blocked by host-env security policy', |
418 | 418 | "Config SecretRef", |
419 | 419 | ); |
420 | | -const warningMessages = warn.mock.calls.map(([message]) => message); |
| 420 | +const warningOutput = warn.mock.calls.map(([message]) => message).join("\n"); |
421 | 421 | for (const blockedName of [ |
422 | 422 | "XDG_CONFIG_HOME", |
423 | 423 | "XDG_CONFIG_DIRS", |
@@ -427,7 +427,7 @@ describe("buildGatewayInstallPlan", () => {
|
427 | 427 | "DOCKER_HOST", |
428 | 428 | "NODE_TLS_REJECT_UNAUTHORIZED", |
429 | 429 | ]) { |
430 | | -expect(warningMessages.some((message) => message.includes(blockedName))).toBe(true); |
| 430 | +expect(warningOutput).toContain(blockedName); |
431 | 431 | } |
432 | 432 | expect(warn.mock.calls.every(([, title]) => title === "Config SecretRef")).toBe(true); |
433 | 433 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。