fix: http download size exceeds file size (#959)

This commit is contained in:
Levi authored and GitHub committed 2025-03-14 20:07:34 +08:00
1 parent 969aeb5e0a
commit f4b839fd11
6 files changed
+136 -67

No files matched your search

+8
View File
@@ -176,6 +176,14 @@ func TestFetcher_DownloadResponseBodyReadTimeout(t *testing.T) {
downloadError(listener, 4, t)
}
func TestFetcher_DownloadOnBugFileServer(t *testing.T) {
listener := test.StartTestRangeBugServer()
defer listener.Close()
downloadNormal(listener, 1, t)
downloadNormal(listener, 4, t)
}
func TestFetcher_DownloadResume(t *testing.T) {
listener := test.StartTestFileServer()
defer listener.Close()