fix(test): reject docker timing flag limits · openclaw/openclaw@124ea48
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -103,13 +103,16 @@ describe("Docker E2E helper CLIs", () => {
|
103 | 103 | }); |
104 | 104 | |
105 | 105 | it("rejects missing timings limits without a Node stack trace", () => { |
106 | | -const result = runHelper("scripts/docker-e2e-timings.mjs", "summary.json", "--limit"); |
| 106 | +for (const limit of [undefined, "-h"]) { |
| 107 | +const args = ["scripts/docker-e2e-timings.mjs", "summary.json", "--limit"]; |
| 108 | +const result = runHelper(...(limit === undefined ? args : [...args, limit])); |
107 | 109 | |
108 | | -expect(result.status).toBe(1); |
109 | | -expect(result.stdout).toBe(""); |
110 | | -expect(result.stderr).toContain("--limit requires a value"); |
111 | | -expect(result.stderr).not.toContain("Error:"); |
112 | | -expect(result.stderr).not.toContain("at file:"); |
| 110 | +expect(result.status).toBe(1); |
| 111 | +expect(result.stdout).toBe(""); |
| 112 | +expect(result.stderr).toContain("--limit requires a value"); |
| 113 | +expect(result.stderr).not.toContain("Error:"); |
| 114 | +expect(result.stderr).not.toContain("at file:"); |
| 115 | +} |
113 | 116 | }); |
114 | 117 | |
115 | 118 | it("prints rerun help without detecting the GitHub repository", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。