mirror of
https://github.com/restic/restic.git
synced 2025-08-20 16:47:27 +00:00
backend: tweak timeouts to make watchdog timeout test less flaky
This commit is contained in:
@@ -190,7 +190,7 @@ func TestDownloadTimeout(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
rt := newWatchdogRoundtripper(http.DefaultTransport, 10*time.Millisecond, 1024)
|
||||
rt := newWatchdogRoundtripper(http.DefaultTransport, 25*time.Millisecond, 1024)
|
||||
req, err := http.NewRequestWithContext(context.TODO(), "GET", srv.URL, io.NopCloser(bytes.NewReader(msg)))
|
||||
rtest.OK(t, err)
|
||||
|
||||
|
Reference in New Issue
Block a user