]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1906: set a lower timeout since it's hit on Windows
authorDan Fandrich <dan@coneharvesters.com>
Thu, 5 Oct 2023 08:58:41 +0000 (01:58 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 5 Oct 2023 09:05:13 +0000 (02:05 -0700)
msys2 builds actually hit the connect timeout in normal operation, so
lower the timeout from 5 minutes to 5 seconds to reduce test time.

Ref: #11328
Closes #12036

tests/libtest/lib1906.c

index 02e8a31a7287d3b69faa61517aa1e095a1222b7d..b60587f8fa8b5d56838a991281df8723e063499d 100644 (file)
@@ -41,6 +41,8 @@ int test(char *URL)
   easy_setopt(curl, CURLOPT_CURLU, curlu);
   easy_setopt(curl, CURLOPT_ERRORBUFFER, error_buffer);
   easy_setopt(curl, CURLOPT_VERBOSE, 1L);
+  /* msys2 times out instead of CURLE_COULDNT_CONNECT, so make it faster */
+  easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 5000L);
   /* set a port number that makes this request fail */
   easy_setopt(curl, CURLOPT_PORT, 1L);
   res = curl_easy_perform(curl);