Commit 37cc249
test: fix test-net-settimeout flakiness
Wait for the data to be received by the socket before creating the
clean-up timer. This way, a possible (though unlikely) `ECONNRESET`
error can be avoided.
PR-URL: #6166
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 69dcbb6 commit 37cc249Copy full SHA for 37cc249
File tree
Expand file treeCollapse file tree
1 file changed
+11
-9
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+11
-9
lines changedOpen diff view settings
Collapse file
test/parallel/test-net-settimeout.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-settimeout.js+11-9Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
| 11 | + |
12 | 12 | |
13 | | - |
| 13 | + |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
17 | 18 | |
18 | | - |
| 19 | + |
19 | 20 | |
20 | 21 | |
21 | 22 | |
22 | 23 | |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
29 | 30 | |
| 31 | + |
0 commit comments