fix: parse qa worker stagger env strictly · openclaw/openclaw@d3b5413
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -178,6 +178,18 @@ describe("qa suite planning helpers", () => {
|
178 | 178 | OPENCLAW_QA_SUITE_WORKER_START_STAGGER_MS: "0", |
179 | 179 | }), |
180 | 180 | ).toBe(0); |
| 181 | +expect( |
| 182 | +resolveQaSuiteWorkerStartStaggerMs(4, { |
| 183 | +OPENCLAW_QA_SUITE_WORKER_START_STAGGER_MS: "25", |
| 184 | +}), |
| 185 | +).toBe(25); |
| 186 | +for (const value of ["0x10", "1e3", "10.5"]) { |
| 187 | +expect( |
| 188 | +resolveQaSuiteWorkerStartStaggerMs(4, { |
| 189 | +OPENCLAW_QA_SUITE_WORKER_START_STAGGER_MS: value, |
| 190 | +}), |
| 191 | +).toBe(1500); |
| 192 | +} |
181 | 193 | }); |
182 | 194 | |
183 | 195 | it("keeps explicitly requested provider-specific scenarios", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。