Commit bb598b3
Fix flaky test TestHTTPConnectWithHeaders (#1397)
The test was failing intermittently due to a race condition where the
datasource connection attempt occurred before the proxy server was ready
to accept connections.
This fix adds synchronization logic that polls the proxy server port
until it's accepting connections (with a 5-second timeout)
Fixes #13971 parent 57469c1 commit bb598b3
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1205 | 1219 | | |
1206 | 1220 | | |
1207 | 1221 | | |
| |||
0 commit comments