Commit 6040efd
test: fix flaky test-tls-wrap-timeout
Competing timers were causing a race condition and thus the test was
flaky. Instead, we check an object property on process exit.
Fixes: #7650
Backport-PR-URL: #12567
PR-URL: #7857
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>1 parent b5b78b1 commit 6040efdCopy full SHA for 6040efd
File tree
Expand file treeCollapse file tree
1 file changed
+31
-19
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+31
-19
lines changedOpen diff view settings
Collapse file
test/parallel/test-tls-wrap-timeout.js
Copy file name to clipboard+31-19Lines changed: 31 additions & 19 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
| 2 | + |
4 | 3 | |
5 | 4 | |
6 | 5 | |
7 | 6 | |
8 | 7 | |
9 | | - |
| 8 | + |
| 9 | + |
10 | 10 | |
11 | | - |
12 | | - |
| 11 | + |
| 12 | + |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
28 | 32 | |
29 | | - |
30 | | - |
31 | | - |
| 33 | + |
| 34 | + |
| 35 | + |
32 | 36 | |
33 | 37 | |
34 | 38 | |
35 | 39 | |
36 | | - |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
37 | 44 | |
38 | 45 | |
39 | 46 | |
40 | 47 | |
41 | 48 | |
42 | 49 | |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
0 commit comments