Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 884f689efecee487788d0b2d1289018735f2841c 1 parent 41f2725
@bnoordhuis bnoordhuis authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/simple/test-fs-watch.js
View
6 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);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.