diff options
author | Rich Trott <rtrott@gmail.com> | 2017-06-18 08:38:35 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-06-20 07:47:46 -0700 |
commit | 275d0b30a0ee9e6e16b9071ebecf5ace4c5caaf5 (patch) | |
tree | fbf9678936eb0fde644bfc0a6db446f7de2a7fa5 /test/async-hooks | |
parent | 7cdcca7623aba835ef23a15d4bf76cd2dcfc2130 (diff) | |
download | android-node-v8-275d0b30a0ee9e6e16b9071ebecf5ace4c5caaf5.tar.gz android-node-v8-275d0b30a0ee9e6e16b9071ebecf5ace4c5caaf5.tar.bz2 android-node-v8-275d0b30a0ee9e6e16b9071ebecf5ace4c5caaf5.zip |
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>
Diffstat (limited to 'test/async-hooks')
-rw-r--r-- | test/async-hooks/test-fseventwrap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/async-hooks/test-fseventwrap.js b/test/async-hooks/test-fseventwrap.js index a703d9fe80..2d9e697501 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(); |