fix(qa): reject duplicate sqlite bench controls · openclaw/openclaw@bde5be8
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,4 +47,12 @@ describe("scripts/bench-sqlite-state", () => {
|
47 | 47 | 'error: --profile must be one of smoke, default, large; got "huge"', |
48 | 48 | ); |
49 | 49 | }); |
| 50 | + |
| 51 | +it("rejects duplicate single-value controls before seeding benchmark databases", () => { |
| 52 | +const result = runBench(["--profile", "smoke", "--profile", "large"]); |
| 53 | + |
| 54 | +expect(result.status).toBe(2); |
| 55 | +expect(result.stdout).toBe(""); |
| 56 | +expect(result.stderr.trim()).toBe("error: --profile was provided more than once"); |
| 57 | +}); |
50 | 58 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。