diff --git a/test/simple/test-child-process-spawnsync.js b/test/simple/test-child-process-spawnsync.js index a7cbb8d1dfb7a7..4ed29646dd8094 100644 --- a/test/simple/test-child-process-spawnsync.js +++ b/test/simple/test-child-process-spawnsync.js @@ -41,7 +41,7 @@ var ret = spawnSync('sleep', ['1']); var stop = process.hrtime(start); assert.strictEqual(ret.status, 0, 'exit status should be zero'); console.log('sleep exited', stop); -assert.strictEqual(stop[0], 1, 'sleep should not take longer or less than 1 second'); +assert.ok(stop[0] >= 1, 'sleep should not take less than 1 second'); // Error test when command does not exist var ret_err = spawnSync('command_does_not_exist');