From 0756e42a85aebd1c58cd238ca05c408281f24c2a Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Tue, 9 Jul 2024 00:37:44 +0200 Subject: [PATCH] lib/api: Increase test request timeout (fixes #9455) (#9602) Fixes #9455 --- lib/api/api_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api/api_test.go b/lib/api/api_test.go index 7be473dc1..88174c77f 100644 --- a/lib/api/api_test.go +++ b/lib/api/api_test.go @@ -444,7 +444,9 @@ func TestAPIServiceRequests(t *testing.T) { // testHTTPRequest tries the given test case, comparing the result code, // content type, and result prefix. func testHTTPRequest(t *testing.T, baseURL string, tc httpTestCase, apikey string) { - timeout := time.Second + // Since running tests in parallel, the previous 1s timeout proved to be too short. + // https://github.com/syncthing/syncthing/issues/9455 + timeout := 10 * time.Second if tc.Timeout > 0 { timeout = tc.Timeout }