Commit 485bb1b
test: fix flaky test-tls-socket-close
Replace timer/timeout race with event-based ordering, eliminating test
flakiness.
PR-URL: #11921
Fixes: #11912
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent abbf6e3 commit 485bb1bCopy full SHA for 485bb1b
File tree
Expand file treeCollapse file tree
1 file changed
+28
-17
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+28
-17
lines changedOpen diff view settings
Collapse file
test/parallel/test-tls-socket-close.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-socket-close.js+28-17Lines changed: 28 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | | - |
| 12 | + |
14 | 13 | |
15 | 14 | |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
24 | 21 | |
25 | 22 | |
| 23 | + |
26 | 24 | |
27 | 25 | |
28 | | - |
| 26 | + |
29 | 27 | |
30 | 28 | |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
| 29 | + |
35 | 30 | |
36 | | - |
37 | 31 | |
38 | 32 | |
39 | 33 | |
40 | 34 | |
41 | 35 | |
42 | | - |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
43 | 54 | |
0 commit comments