1
0
Эх сурвалжийг харах

lib/api: Increase test request timeout (fixes #9455) (#9602)

Fixes #9455
Simon Frei 1 жил өмнө
parent
commit
0756e42a85
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      lib/api/api_test.go

+ 3 - 1
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
 	}