Commit 761af37
test: fix race condition in test-http-client-onerror
Occasionally test-http-client-onerror will fail with a refused connection.
This patch fixes the possibility that connections will be attempted before
server is listening.
PR-URL: #4346
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 9808521 commit 761af37Copy full SHA for 761af37
File tree
Expand file treeCollapse file tree
1 file changed
+5
-3
lines changedOpen diff view settings
Filter options
- test/gc
Expand file treeCollapse file tree
1 file changed
+5
-3
lines changedOpen diff view settings
Collapse file
test/gc/test-http-client-onerror.js
Copy file name to clipboardExpand all lines: test/gc/test-http-client-onerror.js+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
55 | | - |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
56 | 58 | |
57 | 59 | |
58 | 60 | |
|
0 commit comments