Browse Source

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>
v6
Rich Trott 8 years ago
committed by James M Snell
parent
commit
275d0b30a0
  1. 4
      test/async-hooks/test-fseventwrap.js

4
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();

Loading…
Cancel
Save