Commit e62f27e
fix: resolve flaky DownloaderTest hangs by flushing response streams
Fixes issue where DownloadWithXOriginalContentLength and
DownloadWithMismatchedContentLength tests would hang due to
HTTP response streams not being properly flushed after writing data.
The tests were causing CI failures with 2-minute timeouts because
the HTTP client would wait indefinitely for more data when the
response stream wasn't explicitly flushed.
Co-authored-by: ibetitsmike <[email protected]>1 parent 1a99814 commit e62f27e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| |||
0 commit comments