fix(test): reject rpc rtt flag values · openclaw/openclaw@b83dce7
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -178,8 +178,10 @@ describe("scripts/measure-rpc-rtt.mjs", () => {
|
178 | 178 | expect(() => parseArgs(["--output-dir", "/tmp/rpc-rtt", "--methods"])).toThrow( |
179 | 179 | "--methods requires a value.", |
180 | 180 | ); |
181 | | -for (const flag of ["--output-dir", "--repo-root", "--iterations", "--methods"]) { |
182 | | -expect(() => parseArgs([flag, "--methods", "health"])).toThrow(`${flag} requires a value.`); |
| 181 | +for (const value of ["--methods", "-h"]) { |
| 182 | +for (const flag of ["--output-dir", "--repo-root", "--iterations", "--methods"]) { |
| 183 | +expect(() => parseArgs([flag, value, "health"])).toThrow(`${flag} requires a value.`); |
| 184 | +} |
183 | 185 | } |
184 | 186 | }); |
185 | 187 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。