From: Dan Fandrich Date: Wed, 13 Sep 2023 06:30:56 +0000 (-0700) Subject: tests: increase TEST_HANG_TIMEOUT in two tests X-Git-Tag: curl-8_4_0~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c725ec72a303cd4898077202e1248d6542b1b787;p=thirdparty%2Fcurl.git tests: increase TEST_HANG_TIMEOUT in two tests These tests had a 5 second timeout compared to 60 seconds for all other tests. Make these consistent with the others for more reliability on heavily-loaded machines. Ref: #11328 --- diff --git a/tests/libtest/lib597.c b/tests/libtest/lib597.c index 4f40821265..64a1ef8fa0 100644 --- a/tests/libtest/lib597.c +++ b/tests/libtest/lib597.c @@ -29,7 +29,7 @@ #include "warnless.h" #include "memdebug.h" -#define TEST_HANG_TIMEOUT 5 * 1000 +#define TEST_HANG_TIMEOUT 60 * 1000 /* * Test case for below scenario: @@ -101,7 +101,7 @@ int test(char *URL) interval.tv_usec = (itimeout%1000)*1000; } else { - interval.tv_sec = TEST_HANG_TIMEOUT/1000 + 1; + interval.tv_sec = TEST_HANG_TIMEOUT/1000 - 1; interval.tv_usec = 0; } diff --git a/tests/libtest/libntlmconnect.c b/tests/libtest/libntlmconnect.c index fc7c784d35..596f8ef99f 100644 --- a/tests/libtest/libntlmconnect.c +++ b/tests/libtest/libntlmconnect.c @@ -30,7 +30,7 @@ #include "warnless.h" #include "memdebug.h" -#define TEST_HANG_TIMEOUT 5 * 1000 +#define TEST_HANG_TIMEOUT 60 * 1000 #define MAX_EASY_HANDLES 3 static int counter[MAX_EASY_HANDLES];