Commit 83ddd3e
test: fix flaky test
This commit fixes test-tls-set-secure-context.js. The test was
making one long lasting HTTP connection, followed by a number of
shorter lived connections. However, it was possible that the
connections were not received in the desired order. This commit
ensures that the long lasting connection is established before
making any other connections.
PR-URL: #23811
Fixes: #23807
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 141aec9 commit 83ddd3eCopy full SHA for 83ddd3e
File tree
Expand file treeCollapse file tree
1 file changed
+36
-23
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+36
-23
lines changedOpen diff view settings
Collapse file
test/parallel/test-tls-set-secure-context.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-set-secure-context.js+36-23Lines changed: 36 additions & 23 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
7 | 11 | |
8 | 12 | |
9 | 13 | |
| ||
19 | 23 | |
20 | 24 | |
21 | 25 | |
22 | | - |
23 | 26 | |
24 | 27 | |
25 | 28 | |
26 | | - |
| 29 | + |
27 | 30 | |
28 | | - |
| 31 | + |
29 | 32 | |
30 | 33 | |
31 | 34 | |
32 | | - |
| 35 | + |
33 | 36 | |
34 | 37 | |
35 | 38 | |
36 | 39 | |
37 | 40 | |
38 | 41 | |
39 | | - |
| 42 | + |
40 | 43 | |
41 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
42 | 51 | |
43 | | - |
| 52 | + |
44 | 53 | |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
50 | 59 | |
51 | | - |
52 | | - |
| 60 | + |
| 61 | + |
53 | 62 | |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
59 | 72 | |
60 | | - |
61 | | - |
| 73 | + |
62 | 74 | |
63 | 75 | |
64 | | - |
| 76 | + |
65 | 77 | |
66 | 78 | |
67 | 79 | |
68 | 80 | |
69 | | - |
| 81 | + |
| 82 | + |
70 | 83 | |
71 | 84 | |
72 | 85 | |
|
0 commit comments