summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-watch-stop-sync.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-fs-watch-stop-sync.js')
-rw-r--r--test/parallel/test-fs-watch-stop-sync.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-fs-watch-stop-sync.js b/test/parallel/test-fs-watch-stop-sync.js
index 1444ff6bfd..4655c0ac62 100644
--- a/test/parallel/test-fs-watch-stop-sync.js
+++ b/test/parallel/test-fs-watch-stop-sync.js
@@ -1,9 +1,10 @@
'use strict';
-require('../common');
+
+const common = require('../common');
const assert = require('assert');
const fs = require('fs');
-const watch = fs.watchFile(__filename, () => {});
+const watch = fs.watchFile(__filename, common.noop);
watch.once('stop', assert.fail); // Should not trigger.
watch.stop();
watch.removeListener('stop', assert.fail);