mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-09 18:10:29 +00:00
fix(http): reset discarded prefetch progress on resume (#1462)
This commit is contained in:
6 files changed
+93
-9
No files matched your search
@@ -14,6 +14,10 @@ import (
|
||||
|
||||
const TestUserAgent = "GopeedWebViewIntegration/1.0"
|
||||
|
||||
// Providers may need to initialize an external host or a native browser runtime
|
||||
// before the first page can be created.
|
||||
const defaultAvailabilityTimeout = time.Minute
|
||||
|
||||
type ContractOptions struct {
|
||||
AvailabilityTimeout time.Duration
|
||||
CookieDomainMode CookieDomainMode
|
||||
@@ -32,7 +36,7 @@ func RunProviderContract(t *testing.T, provider enginewebview.Provider, opts Con
|
||||
|
||||
timeout := opts.AvailabilityTimeout
|
||||
if timeout <= 0 {
|
||||
timeout = 10 * time.Second
|
||||
timeout = defaultAvailabilityTimeout
|
||||
}
|
||||
waitForProviderAvailable(t, provider, timeout)
|
||||
|
||||
|
||||
Reference in new issue
Block a user