aports/community/syncthing/test-timeout.patch
2024-07-02 14:55:28 +00:00

14 lines
455 B
Diff

Tests time out on the builder often
--- a/lib/api/api_test.go
+++ b/lib/api/api_test.go
@@ -444,7 +444,7 @@ 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
+ timeout := 5 * time.Second
if tc.Timeout > 0 {
timeout = tc.Timeout
}