Commit 4fa1f31
cluster: fix inspector port assignment
Make sure that inspector ports in cluster are inside the valid range:
`[1024, 65535]`.
Fixes flaky `test-inspector-port-zero-cluster`.
PR-URL: #18696
Fixes: #18303
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 205a84c commit 4fa1f31Copy full SHA for 4fa1f31
File tree
Expand file treeCollapse file tree
3 files changed
+17
-6
lines changedOpen diff view settings
Filter options
- lib/internal/cluster
- test/sequential
Expand file treeCollapse file tree
3 files changed
+17
-6
lines changedOpen diff view settings
Collapse file
lib/internal/cluster/master.js
Copy file name to clipboardExpand all lines: lib/internal/cluster/master.js+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | 20 | |
| ||
119 | 120 | |
120 | 121 | |
121 | 122 | |
| 123 | + |
| 124 | + |
122 | 125 | |
123 | 126 | |
124 | 127 | |
|
Collapse file
test/sequential/test-inspector-port-cluster.js
Copy file name to clipboardExpand all lines: test/sequential/test-inspector-port-cluster.js+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
27 | 37 | |
28 | 38 | |
29 | 39 | |
|
Collapse file
test/sequential/test-inspector-port-zero-cluster.js
Copy file name to clipboardExpand all lines: test/sequential/test-inspector-port-zero-cluster.js+4-6Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
34 | | - |
| 33 | + |
35 | 34 | |
36 | 35 | |
37 | 36 | |
38 | 37 | |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
| 38 | + |
| 39 | + |
| 40 | + |
43 | 41 | |
44 | 42 | |
45 | 43 | |
|
0 commit comments