From 5d4bec3e0f703f9f3b210ceb601add2c00a4f083 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 23 Sep 2018 19:55:00 +0200 Subject: [PATCH] test: fix flaky sequential/test-fs-watch-system-limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test has at least once locally received `EMFILE` rather than `ENOSPC`, which also seems to provide a reasonable error message (which is what the test ultimately checks). PR-URL: https://github.com/nodejs/node/pull/23038 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca --- test/sequential/test-fs-watch-system-limit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sequential/test-fs-watch-system-limit.js b/test/sequential/test-fs-watch-system-limit.js index f7af3be86c29f4..e896cbf83b965a 100644 --- a/test/sequential/test-fs-watch-system-limit.js +++ b/test/sequential/test-fs-watch-system-limit.js @@ -42,7 +42,8 @@ gatherStderr.on('data', common.mustCallAtLeast((chunk) => { if (accumulated.includes('Error:') && !finished) { assert( accumulated.includes('ENOSPC: System limit for number ' + - 'of file watchers reached'), + 'of file watchers reached') || + accumulated.includes('EMFILE: '), accumulated); console.log(`done after ${processes.length} processes, cleaning up`); finished = true;