mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
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:
1 parent
1b192f936a
commit
406c2cd8e4
1 file changed
+3
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user