fix(qa): reject unknown docker timing options · openclaw/openclaw@8c09419
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -91,6 +91,20 @@ describe("Docker E2E helper CLIs", () => {
|
91 | 91 | expect(result.stderr).not.toContain("at file:"); |
92 | 92 | }); |
93 | 93 | |
| 94 | +it("rejects unknown timings options without treating them as artifact paths", () => { |
| 95 | +const result = runHelper("scripts/docker-e2e-timings.mjs", "--wat"); |
| 96 | + |
| 97 | +expect(result.status).toBe(1); |
| 98 | +expect(result.stdout).toBe(""); |
| 99 | +expect(result.stderr).toContain("unknown argument: --wat"); |
| 100 | +expect(result.stderr).toContain( |
| 101 | +"Usage: node scripts/docker-e2e-timings.mjs <summary.json|lane-timings.json>", |
| 102 | +); |
| 103 | +expect(result.stderr).not.toContain("ENOENT"); |
| 104 | +expect(result.stderr).not.toContain("Error:"); |
| 105 | +expect(result.stderr).not.toContain("at file:"); |
| 106 | +}); |
| 107 | + |
94 | 108 | it("rejects oversized timing JSON artifacts without a Node stack trace", () => { |
95 | 109 | const root = mkdtempSync(`${tmpdir()}/openclaw-docker-e2e-timings-`); |
96 | 110 | try { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。