diff options
Diffstat (limited to 'test/sequential/test-fs-watch.js')
-rw-r--r-- | test/sequential/test-fs-watch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sequential/test-fs-watch.js b/test/sequential/test-fs-watch.js index cc0f241c3a..b876a35d61 100644 --- a/test/sequential/test-fs-watch.js +++ b/test/sequential/test-fs-watch.js @@ -129,7 +129,7 @@ fs.watch(__filename, {persistent: false}, function() { // https://github.com/joyent/node/issues/6690 let oldhandle; assert.throws(function() { - const w = fs.watch(__filename, function(event, filename) { }); + const w = fs.watch(__filename, common.noop); oldhandle = w._handle; w._handle = { close: w._handle.close }; w.close(); @@ -137,7 +137,7 @@ assert.throws(function() { oldhandle.close(); // clean up assert.throws(function() { - const w = fs.watchFile(__filename, {persistent: false}, function() {}); + const w = fs.watchFile(__filename, {persistent: false}, common.noop); oldhandle = w._handle; w._handle = { stop: w._handle.stop }; w.stop(); |