Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: add #2293 regression test
Browse files Browse the repository at this point in the history
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 884f689
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/simple/test-fs-watch.js
Expand Up @@ -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.