diff --git a/test/parallel/test-child-process-spawnsync-timeout.js b/test/parallel/test-child-process-spawnsync-timeout.js index aeb2be86608cf4..426ac05a43497c 100644 --- a/test/parallel/test-child-process-spawnsync-timeout.js +++ b/test/parallel/test-child-process-spawnsync-timeout.js @@ -28,7 +28,14 @@ const { debuglog, getSystemErrorName } = require('util'); const debug = debuglog('test'); const TIMER = 200; -const SLEEP = common.platformTimeout(5000); +let SLEEP = common.platformTimeout(5000); + +if (common.isWindows) { + // Some of the windows machines in the CI need more time to launch + // and receive output from child processes. + // https://github.com/nodejs/build/issues/3014 + SLEEP = common.platformTimeout(15000); +} switch (process.argv[2]) { case 'child': diff --git a/test/sequential/test-child-process-execsync.js b/test/sequential/test-child-process-execsync.js index 5512eaeed7af35..75acbc34a902bd 100644 --- a/test/sequential/test-child-process-execsync.js +++ b/test/sequential/test-child-process-execsync.js @@ -30,7 +30,13 @@ const { execFileSync, execSync, spawnSync } = require('child_process'); const { getSystemErrorName } = require('util'); const TIMER = 200; -const SLEEP = 2000; +let SLEEP = 2000; +if (common.isWindows) { + // Some of the windows machines in the CI need more time to launch + // and receive output from child processes. + // https://github.com/nodejs/build/issues/3014 + SLEEP = 10000; +} const execOpts = { encoding: 'utf8', shell: true };