mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
backend: increase watchdog test timeout for deflaking
This commit is contained in:
parent
f680a2331d
commit
860b595a8b
@ -64,7 +64,7 @@ func TestRoundtrip(t *testing.T) {
|
|||||||
}))
|
}))
|
||||||
defer srv.Close()
|
defer srv.Close()
|
||||||
|
|
||||||
rt := newWatchdogRoundtripper(http.DefaultTransport, 50*time.Millisecond, 2)
|
rt := newWatchdogRoundtripper(http.DefaultTransport, 100*time.Millisecond, 2)
|
||||||
req, err := http.NewRequestWithContext(context.TODO(), "GET", srv.URL, io.NopCloser(newSlowReader(bytes.NewReader(msg), time.Duration(delay)*time.Millisecond)))
|
req, err := http.NewRequestWithContext(context.TODO(), "GET", srv.URL, io.NopCloser(newSlowReader(bytes.NewReader(msg), time.Duration(delay)*time.Millisecond)))
|
||||||
rtest.OK(t, err)
|
rtest.OK(t, err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user