diff --git a/test/parallel/test-child-process-spawnsync-timeout.js b/test/parallel/test-child-process-spawnsync-timeout.js index abebe41e6e9640..38f22deef26ae7 100644 --- a/test/parallel/test-child-process-spawnsync-timeout.js +++ b/test/parallel/test-child-process-spawnsync-timeout.js @@ -1,11 +1,11 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const spawnSync = require('child_process').spawnSync; const TIMER = 200; -const SLEEP = 5000; +const SLEEP = common.platformTimeout(5000); switch (process.argv[2]) { case 'child': @@ -19,7 +19,6 @@ switch (process.argv[2]) { const ret = spawnSync(process.execPath, [__filename, 'child'], {timeout: TIMER}); assert.strictEqual(ret.error.errno, 'ETIMEDOUT'); - console.log(ret); const end = Date.now() - start; assert(end < SLEEP); assert(ret.status > 128 || ret.signal);