From fa35e72214652de639dc6d9f2685e56905281dfd Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 10 Aug 2024 19:07:59 +0200 Subject: [PATCH] backend: tweak timeouts to make watchdog timeout test less flaky --- internal/backend/watchdog_roundtriper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/backend/watchdog_roundtriper_test.go b/internal/backend/watchdog_roundtriper_test.go index bc43447e1..723a311cb 100644 --- a/internal/backend/watchdog_roundtriper_test.go +++ b/internal/backend/watchdog_roundtriper_test.go @@ -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)