test: add #2293 regression test
Creating a file event watcher with fs.watch({persistent:false}) should not block the event loop.
This commit is contained in:
parent
41f2725639
commit
884f689efe
@ -141,3 +141,9 @@ setTimeout(function() {
|
|||||||
var fd = fs.openSync(filepathThree, 'w');
|
var fd = fs.openSync(filepathThree, 'w');
|
||||||
fs.closeSync(fd);
|
fs.closeSync(fd);
|
||||||
}, 1000);
|
}, 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);
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user