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 jasnell committed Jun 20, 2017

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent 7cdcca7 commit 275d0b3
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');
@@ -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();

0 comments on commit 275d0b3

Please sign in to comment.