diff --git a/test/simple/test-fs-watch.js b/test/simple/test-fs-watch.js index 5c8b8bee2d..9f09061373 100644 --- a/test/simple/test-fs-watch.js +++ b/test/simple/test-fs-watch.js @@ -77,7 +77,7 @@ assert.doesNotThrow( setTimeout(function() { fs.writeFileSync(filepathOne, 'world'); -}, 1000); +}, 10); process.chdir(testDir); @@ -100,7 +100,7 @@ assert.doesNotThrow( setTimeout(function() { fs.writeFileSync(filepathTwoAbs, 'pardner'); -}, 1000); +}, 10); try { fs.unlinkSync(filepathThree); } catch (e) {} try { fs.mkdirSync(testsubdir, 0700); } catch (e) {} @@ -124,7 +124,7 @@ assert.doesNotThrow( setTimeout(function() { var fd = fs.openSync(filepathThree, 'w'); fs.closeSync(fd); -}, 1000); +}, 10); // https://github.com/joyent/node/issues/2293 - non-persistent watcher should // not block the event loop