Content-Length: 260312 | pFad | https://github.com/nodejs/node/commit/7c9fa11127

F6 test: fix race condition in test-child-process-bad-stdio · nodejs/node@7c9fa11 · GitHub
Skip to content

Commit 7c9fa11

Browse files
cjihrigtargos
authored andcommitted
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. PR-URL: #56845 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 3999786 commit 7c9fa11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nodejs/node/commit/7c9fa11127

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy