summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-06-18 08:38:35 -0700
committerAnna Henningsen <anna@addaleax.net>2017-06-21 22:44:21 +0200
commit3306fd1d97754dd01859619ab8ce47a956445151 (patch)
tree05aa5cf2962c890d697d151909048606abf61a54
parent28166770bd3aadcbaf4843588cbaf731431032b7 (diff)
downloadnode-new-3306fd1d97754dd01859619ab8ce47a956445151.tar.gz
test: accommodate AIX by watching file
Watching directories has limited support on AIX. This is documented. Watch a file in test/async-hooks/test-fseventwrap.js to accommodate AIX. PR-URL: https://github.com/nodejs/node/pull/13766 Ref: https://github.com/nodejs/node/issues/13577#issuecomment-308038674 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--test/async-hooks/test-fseventwrap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/async-hooks/test-fseventwrap.js b/test/async-hooks/test-fseventwrap.js
index 2eb1abad65..acb579c6ae 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();