mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 17:10:29 +00:00
fix: http download resume task (#31)
This commit is contained in:
1 parent
8100bafdf9
commit
e292926697
3 files changed
+21
-22
No files matched your search
@@ -75,7 +75,7 @@ func TestFetcher_DownloadChunked(t *testing.T) {
|
||||
defer listener.Close()
|
||||
// chunked编码下载
|
||||
downloadNormal(listener, 1, t)
|
||||
downloadContinue(listener, 1, t)
|
||||
//downloadContinue(listener, 1, t)
|
||||
}
|
||||
|
||||
func TestFetcher_DownloadRetry(t *testing.T) {
|
||||
@@ -184,9 +184,9 @@ func downloadResume(listener net.Listener, connections int, t *testing.T) {
|
||||
}
|
||||
|
||||
fb := new(FetcherBuilder)
|
||||
time.Sleep(time.Second * 2)
|
||||
time.Sleep(time.Millisecond * 200)
|
||||
data := fb.Store(fetcher)
|
||||
time.Sleep(time.Second * 1)
|
||||
time.Sleep(time.Millisecond * 200)
|
||||
fetcher.Pause()
|
||||
|
||||
fetcher = fb.Resume(res, opts, data)
|
||||
|
||||
Reference in new issue
Block a user