mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const common = require('../common');
|
||||
|
||||
if (process.argv[2] === 'child') {
|
||||
setTimeout(() => {}, common.platformTimeout(100));
|
||||
setTimeout(() => {}, common.platformTimeout(1000));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user