fix(test): reject loose Vitest wrapper limits · openclaw/openclaw@f5194c4
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -426,6 +426,12 @@ describe("scripts/run-vitest", () => {
|
426 | 426 | expect( |
427 | 427 | resolveVitestNoOutputTimeoutMs({ OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "0" }), |
428 | 428 | ).toBeNull(); |
| 429 | +expect( |
| 430 | +resolveVitestNoOutputTimeoutMs({ OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "1e3" }), |
| 431 | +).toBeNull(); |
| 432 | +expect( |
| 433 | +resolveVitestNoOutputTimeoutMs({ OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "2500ms" }), |
| 434 | +).toBeNull(); |
429 | 435 | }); |
430 | 436 | |
431 | 437 | it("defaults direct non-watch runs to the stall watchdog", () => { |
@@ -761,6 +767,25 @@ describe("scripts/run-vitest", () => {
|
761 | 767 | }); |
762 | 768 | }); |
763 | 769 | |
| 770 | +it("does not truncate malformed native worker budgets", () => { |
| 771 | +expect( |
| 772 | +resolveVitestSpawnParams( |
| 773 | +{ |
| 774 | +OPENCLAW_TEST_PROJECTS_SERIAL: "1", |
| 775 | +OPENCLAW_VITEST_MAX_WORKERS: "8x", |
| 776 | +PATH: "/usr/bin", |
| 777 | +}, |
| 778 | +"darwin", |
| 779 | +).env, |
| 780 | +).toEqual({ |
| 781 | +OPENCLAW_TEST_PROJECTS_SERIAL: "1", |
| 782 | +OPENCLAW_VITEST_MAX_WORKERS: "8x", |
| 783 | +PATH: "/usr/bin", |
| 784 | +RAYON_NUM_THREADS: "1", |
| 785 | +TOKIO_WORKER_THREADS: "1", |
| 786 | +}); |
| 787 | +}); |
| 788 | + |
764 | 789 | it("suppresses rolldown plugin timing noise while keeping other stderr intact", () => { |
765 | 790 | expect( |
766 | 791 | shouldSuppressVitestStderrLine( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。