From c725ec72a303cd4898077202e1248d6542b1b787 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 12 Sep 2023 23:30:56 -0700 Subject: [PATCH] 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 --- tests/libtest/lib597.c | 4 ++-- tests/libtest/libntlmconnect.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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];