test: make test-fs-watchfile reliable
Omitting AIX from `fs.watch()` portion of this test. It works on AIX, but not reliably. PR-URL: https://github.com/nodejs/node/pull/13385 Fixes: https://github.com/nodejs/node/issues/13377 Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
6cfdbc74d9
commit
98aa25c765
@ -64,8 +64,9 @@ fs.watchFile(enoentFile, {interval: 0}, common.mustCall(function(curr, prev) {
|
||||
}
|
||||
}, 2));
|
||||
|
||||
// Watch events should callback with a filename on supported systems
|
||||
if (common.isLinux || common.isOSX || common.isWindows || common.isAix) {
|
||||
// Watch events should callback with a filename on supported systems.
|
||||
// Omitting AIX. It works but not reliably.
|
||||
if (common.isLinux || common.isOSX || common.isWindows) {
|
||||
const dir = common.tmpDir + '/watch';
|
||||
|
||||
fs.mkdir(dir, common.mustCall(function(err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user