Skip to content

Commit

Permalink
test: accommodate AIX by watching file
Browse files Browse the repository at this point in the history
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: #13766
Ref: #13577 (comment)
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>
  • Loading branch information
Trott authored and addaleax committed Jun 20, 2017
1 parent 05e36d9 commit 23a320e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/async-hooks/test-fseventwrap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

require('../common');

const assert = require('assert');
const initHooks = require('./init-hooks');
const tick = require('./tick');
Expand All @@ -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();
Expand Down

0 comments on commit 23a320e

Please sign in to comment.