Merge pull request #4994 from MichaelEischer/less-flaky-watchdog-test

backend: tweak timeouts to make watchdog timeout test less flaky
This commit is contained in:
Michael Eischer 2024-08-10 19:35:38 +02:00 committed by GitHub
commit 283225f15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,7 +190,7 @@ func TestDownloadTimeout(t *testing.T) {
})) }))
defer srv.Close() 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))) req, err := http.NewRequestWithContext(context.TODO(), "GET", srv.URL, io.NopCloser(bytes.NewReader(msg)))
rtest.OK(t, err) rtest.OK(t, err)