Commit f205e99
test: fix tls-no-rsa-key flakiness
In some conditions it can happen that the client-side socket is destroyed
before the server-side socket has gracefully closed, thus causing a
'ECONNRESET' error in this socket. To solve this, wait in the client-side
socket for the 'end' event before closing it.
PR-URL: #4043
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent b66db49 commit f205e99Copy full SHA for f205e99
File tree
Expand file treeCollapse file tree
1 file changed
+9
-2
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+9
-2
lines changedOpen diff view settings
Collapse file
test/parallel/test-tls-no-rsa-key.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-no-rsa-key.js+9-2Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
26 | 35 | |
27 | | - |
28 | | - |
29 | 36 | |
30 | 37 | |
31 | 38 | |
|
0 commit comments