Commit 9992d17
committed
Add readiness wait for TiDB cluster before tests
Add wait_for_tidb function that waits for TiDB to be ready before
tests start. Uses extended timeout (240s) for 6.1.x and 6.5.x versions
which need longer startup time, matching the behavior in tidb-playground.sh.
This fixes test timeouts where tests were trying to connect before
TiDB was ready to accept connections.1 parent affb8c9 commit 9992d17
1 file changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
173 | 206 | | |
174 | 207 | | |
175 | 208 | | |
| |||
178 | 211 | | |
179 | 212 | | |
180 | 213 | | |
181 | | - | |
| 214 | + | |
| 215 | + | |
182 | 216 | | |
183 | 217 | | |
184 | 218 | | |
| |||
0 commit comments