test: tighten process timeout thresholds with stabilized emit guard
This commit is contained in:
@@ -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,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user