fix: http download retries too many times (#849)

This commit is contained in:
Levi authored and GitHub committed 2024-12-24 20:28:04 +08:00
1 parent 8b61343aef
commit c970378fd7
5 files changed
+164 -43

No files matched your search

+8
View File
@@ -132,6 +132,14 @@ func TestFetcher_DownloadLimit(t *testing.T) {
downloadNormal(listener, 8, t)
}
func TestFetcher_DownloadResponseBodyReadTimeout(t *testing.T) {
listener := test.StartTestLimitServer(16, readTimeout.Milliseconds()+5000)
defer listener.Close()
downloadError(listener, 1, t)
downloadError(listener, 4, t)
}
func TestFetcher_DownloadResume(t *testing.T) {
listener := test.StartTestFileServer()
defer listener.Close()