Skip to content

Commit 377f72e

Browse files
authored
Close stdin stream for child process in test
Explicitly close the wrapped stream for childA to receive EOF.
1 parent c6d3ece commit 377f72e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-child-process-spawnsync.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ assert.deepStrictEqual(ret_err.spawnargs, ['bar']);
9292
{ stdio: ['inherit', childA.stdin, 'inherit'] });
9393

9494
assert.strictEqual(result.status, 0);
95+
// Explicitly close the wrapped stream on the parent side so childA receives EOF.
96+
childA.stdin.end();
9597
}

0 commit comments

Comments
 (0)