fix(qa): reject duplicate rpc rtt controls · openclaw/openclaw@d095d98
vincentkoc
·
2026-06-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -182,6 +182,12 @@ describe("scripts/measure-rpc-rtt.mjs", () => {
|
182 | 182 | expect(() => |
183 | 183 | parseArgs(["--output-dir", "/tmp/rpc-rtt", "--methods", "health, config.get,health"]), |
184 | 184 | ).toThrow("--methods contains duplicate gateway method: health"); |
| 185 | +expect(() => parseArgs(["--output-dir", "/tmp/one", "--output-dir", "/tmp/two"])).toThrow( |
| 186 | +"--output-dir was provided more than once.", |
| 187 | +); |
| 188 | +expect(() => |
| 189 | +parseArgs(["--output-dir", "/tmp/rpc-rtt", "--methods", "health", "--methods", "config.get"]), |
| 190 | +).toThrow("--methods was provided more than once."); |
185 | 191 | for (const value of ["--methods", "-h"]) { |
186 | 192 | for (const flag of ["--output-dir", "--repo-root", "--iterations", "--methods"]) { |
187 | 193 | expect(() => parseArgs([flag, value, "health"])).toThrow(`${flag} requires a value.`); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。