Commit e20f357
test: improve test-https-server-keep-alive-timeout
The test is flaky under load. These changes greatly improve reliability.
* Use a recurring interval to determine when the test should end rather
than a timer.
* Increase server timeout to 500ms to allow for events being delayed by
system load
Changing to an interval has the added benefit of reducing the test run
time from over 2 seconds to under 1 second.
Fixes: #13307
PR-URL: #13312
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>1 parent 1729574 commit e20f357
1 file changed
+10
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | | - | |
39 | 35 | | |
40 | | - | |
41 | 36 | | |
42 | 37 | | |
43 | | - | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | | - | |
48 | | - | |
| 41 | + | |
| 42 | + | |
49 | 43 | | |
50 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 59 | | |
69 | 60 | | |
70 | 61 | | |
71 | 62 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 63 | | |
76 | 64 | | |
77 | | - | |
78 | 65 | | |
79 | | - | |
80 | 66 | | |
81 | 67 | | |
82 | | - | |
83 | 68 | | |
84 | 69 | | |
85 | | - | |
86 | | - | |
| 70 | + | |
| 71 | + | |
87 | 72 | | |
88 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
89 | 76 | | |
90 | 77 | | |
91 | 78 | | |
| |||
98 | 85 | | |
99 | 86 | | |
100 | 87 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 88 | | |
107 | 89 | | |
0 commit comments