diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-09-23 19:55:00 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-09-23 22:42:43 +0200 |
commit | bea41bc945dff623961d65e86d5a4cd0d18fffb6 (patch) | |
tree | b092c59f594b428383eb161315f8bb155304721c /test | |
parent | 8aca934009225b30bff7d7927d2eb9f667dbff9f (diff) | |
download | android-node-v8-bea41bc945dff623961d65e86d5a4cd0d18fffb6.tar.gz android-node-v8-bea41bc945dff623961d65e86d5a4cd0d18fffb6.tar.bz2 android-node-v8-bea41bc945dff623961d65e86d5a4cd0d18fffb6.zip |
test: fix flaky sequential/test-fs-watch-system-limit
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 <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/sequential/test-fs-watch-system-limit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sequential/test-fs-watch-system-limit.js b/test/sequential/test-fs-watch-system-limit.js index f7af3be86c..e896cbf83b 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; |