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>
This commit is contained in:
parent
7cdcca7623
commit
275d0b30a0
@ -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…
x
Reference in New Issue
Block a user