diff --git a/test/fixtures/catch-stdout-error.js b/test/fixtures/catch-stdout-error.js index a24494614..bdd09b5ab 100644 --- a/test/fixtures/catch-stdout-error.js +++ b/test/fixtures/catch-stdout-error.js @@ -25,7 +25,7 @@ function write() { } catch (ex) { throw new Error('this should never happen'); } - process.nextTick(function() { + setImmediate(function() { write(); }); }