diff --git a/test/parallel/test-fs-watch-recursive.js b/test/parallel/test-fs-watch-recursive.js index 603303abb2..05dfb32178 100644 --- a/test/parallel/test-fs-watch-recursive.js +++ b/test/parallel/test-fs-watch-recursive.js @@ -34,7 +34,13 @@ watcher.on('change', function(event, filename) { watcherClosed = true; }); -fs.writeFileSync(filepathOne, 'world'); +if (process.platform === 'darwin') { + setTimeout(function() { + fs.writeFileSync(filepathOne, 'world'); + }, 100); +} else { + fs.writeFileSync(filepathOne, 'world'); +} process.on('exit', function() { assert(watcherClosed, 'watcher Object was not closed');