fix(scripts): reject short flag CI timing limits · openclaw/openclaw@bebc5d8
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -263,7 +263,13 @@ describe("scripts/ci-run-timings.mjs", () => {
|
263 | 263 | }); |
264 | 264 | |
265 | 265 | it("rejects missing monitor limits instead of treating flags as values", () => { |
266 | | -for (const args of [["--limit"], ["--limit", "--recent", "4"], ["--recent"]]) { |
| 266 | +for (const args of [ |
| 267 | +["--limit"], |
| 268 | +["--limit", "--recent", "4"], |
| 269 | +["--limit", "-h"], |
| 270 | +["--recent"], |
| 271 | +["--recent", "-h"], |
| 272 | +]) { |
267 | 273 | expect(() => parseRunTimingArgs(args)).toThrow("requires a value"); |
268 | 274 | } |
269 | 275 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。