From 98aa25c765f50eab80f27750b9b7f82888af4c8c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 1 Jun 2017 22:34:59 -0700 Subject: [PATCH] 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 Reviewed-By: Michael Dawson Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Refael Ackermann --- test/parallel/test-fs-watchfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-watchfile.js b/test/parallel/test-fs-watchfile.js index 270a281ce3..fb87b1ee87 100644 --- a/test/parallel/test-fs-watchfile.js +++ b/test/parallel/test-fs-watchfile.js @@ -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) {