diff --git a/test/async-hooks/test-fseventwrap.js b/test/async-hooks/test-fseventwrap.js index a703d9fe80e..2d9e697501e 100644 --- a/test/async-hooks/test-fseventwrap.js +++ b/test/async-hooks/test-fseventwrap.js @@ -1,6 +1,6 @@ 'use strict'; - require('../common'); + const assert = require('assert'); const initHooks = require('./init-hooks'); const tick = require('./tick'); @@ -10,7 +10,7 @@ const fs = require('fs'); const hooks = initHooks(); hooks.enable(); -const watcher = fs.watch(__dirname, onwatcherChanged); +const watcher = fs.watch(__filename, onwatcherChanged); function onwatcherChanged() { } watcher.close();