Skip to content

Commit 5d4bec3

Browse files
addaleaxtargos
authored andcommitted
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: #23038 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b48dc0b commit 5d4bec3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/sequential/test-fs-watch-system-limit.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ gatherStderr.on('data', common.mustCallAtLeast((chunk) => {
4242
if (accumulated.includes('Error:') && !finished) {
4343
assert(
4444
accumulated.includes('ENOSPC: System limit for number ' +
45-
'of file watchers reached'),
45+
'of file watchers reached') ||
46+
accumulated.includes('EMFILE: '),
4647
accumulated);
4748
console.log(`done after ${processes.length} processes, cleaning up`);
4849
finished = true;

0 commit comments

Comments
 (0)