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