Skip to content

Commit 83f508a

Browse files
committed
test(process): harden descendant timeout proof
1 parent 6958e4c commit 83f508a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/process/exec.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ describe("runCommandBuffered", () => {
502502
"process.stdout.write(`PID:${child.pid}\\n`)",
503503
].join(";");
504504
const result = await runCommandBuffered([process.execPath, "-e", parentSource], {
505-
timeoutMs: 50,
505+
// The timeout starts before Node initializes; loaded CI still needs time to spawn and report the descendant.
506+
timeoutMs: 500,
506507
});
507508
const pidMatch = result.stdout.toString().match(/PID:(\d+)/u);
508509
if (!pidMatch) {

0 commit comments

Comments
 (0)