Commit e7ae8eb
test: refactor test-child-process-pass-fd
Add a comment explaining the test (especailly why it forks 80 processes.
Use destructuring and an arrow function callback.
PR-URL: #17596
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>1 parent 5a9172f commit e7ae8ebCopy full SHA for e7ae8eb
File tree
Expand file treeCollapse file tree
1 file changed
+12
-3
lines changedOpen diff view settings
Filter options
- test/sequential
Expand file treeCollapse file tree
1 file changed
+12
-3
lines changedOpen diff view settings
Collapse file
test/sequential/test-child-process-pass-fd.js
Copy file name to clipboardExpand all lines: test/sequential/test-child-process-pass-fd.js+12-3Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
3 | 12 | |
4 | 13 | |
5 | 14 | |
6 | 15 | |
7 | 16 | |
8 | | - |
| 17 | + |
9 | 18 | |
10 | 19 | |
11 | 20 | |
| ||
46 | 55 | |
47 | 56 | |
48 | 57 | |
49 | | - |
| 58 | + |
50 | 59 | |
51 | 60 | |
52 | 61 | |
53 | 62 | |
54 | 63 | |
55 | 64 | |
56 | | - |
| 65 | + |
57 | 66 | |
58 | 67 | |
59 | 68 | |
0 commit comments