Commit 04fb14c
test: fix flaky test-child-process-emfile
Require the test setup to obtain an EMFILE error and not ENFILE as
ENFILE means there is a race condition with other processes that may
close files before `spawn()` is called by the test.
Fixes: #2666
PR-URL: #3430
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 6936468 commit 04fb14cCopy full SHA for 04fb14c
File tree
Expand file treeCollapse file tree
1 file changed
+24
-8
lines changedOpen diff view settings
Filter options
- test/sequential
Expand file treeCollapse file tree
1 file changed
+24
-8
lines changedOpen diff view settings
Collapse file
test/sequential/test-child-process-emfile.js
Copy file name to clipboardExpand all lines: test/sequential/test-child-process-emfile.js+24-8Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
13 | 29 | |
14 | 30 | |
15 | 31 | |
16 | 32 | |
17 | 33 | |
18 | | - |
| 34 | + |
19 | 35 | |
20 | 36 | |
21 | 37 | |
22 | 38 | |
23 | 39 | |
24 | | - |
| 40 | + |
25 | 41 | |
26 | 42 | |
27 | | - |
| 43 | + |
28 | 44 | |
29 | 45 | |
30 | 46 | |
|
0 commit comments