From 9684ae4c6d50ac0da6b30a6db9919b882c5ddff1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 05:09:41 +0000 Subject: [PATCH] test: tighten process timeout thresholds with stabilized emit guard --- src/process/exec.test.ts | 6 +++--- src/process/supervisor/supervisor.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/process/exec.test.ts b/src/process/exec.test.ts index 9ea90edf6..e9a9754e8 100644 --- a/src/process/exec.test.ts +++ b/src/process/exec.test.ts @@ -41,7 +41,7 @@ describe("runCommandWithTimeout", () => { [process.execPath, "-e", "setTimeout(() => {}, 10_000)"], { timeoutMs: 5_000, - noOutputTimeoutMs: 60, + noOutputTimeoutMs: 50, }, ); @@ -59,7 +59,7 @@ describe("runCommandWithTimeout", () => { ], { timeoutMs: 5_000, - noOutputTimeoutMs: 120, + noOutputTimeoutMs: 160, }, ); @@ -73,7 +73,7 @@ describe("runCommandWithTimeout", () => { const result = await runCommandWithTimeout( [process.execPath, "-e", "setTimeout(() => {}, 10_000)"], { - timeoutMs: 20, + timeoutMs: 15, }, ); diff --git a/src/process/supervisor/supervisor.test.ts b/src/process/supervisor/supervisor.test.ts index 7333be79f..30032c80b 100644 --- a/src/process/supervisor/supervisor.test.ts +++ b/src/process/supervisor/supervisor.test.ts @@ -26,7 +26,7 @@ describe("process supervisor", () => { mode: "child", argv: [process.execPath, "-e", "setTimeout(() => {}, 10_000)"], timeoutMs: 5_000, - noOutputTimeoutMs: 35, + noOutputTimeoutMs: 30, stdinMode: "pipe-closed", }); const exit = await run.wait();