Commit 98b721e
test: fix flaky child-process-fork-regr-gh-2847
The test is still failing sometimes because when trying to establish the
second connection, the server is already closed. Bring back the code
that handled this case and was removed in the last refactoring of the
test. Also ignore the errors that might happen when sending the second
handle to the worker because it may already have exited.
PR-URL: #5422
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent f296a7f commit 98b721eCopy full SHA for 98b721e
File tree
Expand file treeCollapse file tree
1 file changed
+18
-2
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+18
-2
lines changedOpen diff view settings
Collapse file
test/parallel/test-child-process-fork-regr-gh-2847.js
Copy file name to clipboardExpand all lines: test/parallel/test-child-process-fork-regr-gh-2847.js+18-2Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
35 | 44 | |
36 | 45 | |
37 | 46 | |
| ||
40 | 49 | |
41 | 50 | |
42 | 51 | |
43 | | - |
44 | | - |
45 | 52 | |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
46 | 62 | |
0 commit comments