Skip to content

Commit dd93a47

Browse files
committed
test: fix race condition in test-child-process-bad-stdio
test-child-process-bad-stdio.js contains a race condition between a timeout in the test process and a timeout in the spawned child process. This commit addresses the race condition by having the child process wait indefinitely to be killed.
1 parent ed52ab9 commit dd93a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-child-process-bad-stdio.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const common = require('../common');
44

55
if (process.argv[2] === 'child') {
6-
setTimeout(() => {}, common.platformTimeout(100));
6+
setTimeout(() => {}, common.platformTimeout(1000));
77
return;
88
}
99

0 commit comments

Comments
 (0)