Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

test: add #2293 regression test

Creating a file event watcher with fs.watch({persistent:false}) should not block
the event loop.
  • Loading branch information...
bnoordhuis committed Jan 2, 2012
1 parent 41f2725 commit 884f689efecee487788d0b2d1289018735f2841c
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/simple/test-fs-watch.js
@@ -141,3 +141,9 @@ setTimeout(function() {
var fd = fs.openSync(filepathThree, 'w');
fs.closeSync(fd);
}, 1000);

// https://github.com/joyent/node/issues/2293 - non-persistent watcher should
// not block the event loop
fs.watch(__filename, {persistent: false}, function() {
assert(0);
});

0 comments on commit 884f689

Please sign in to comment.
You can’t perform that action at this time.