]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: increase TEST_HANG_TIMEOUT in two tests
authorDan Fandrich <dan@coneharvesters.com>
Wed, 13 Sep 2023 06:30:56 +0000 (23:30 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 13 Sep 2023 18:26:08 +0000 (11:26 -0700)
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
tests/libtest/libntlmconnect.c

index 4f408212654dce34f76e9883b864aa8d62e3933c..64a1ef8fa0ae65f3b9a65a86adce0ec5fbfa1cab 100644 (file)
@@ -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;
     }
 
index fc7c784d35e0e46441247c64fd6635aa67a5868b..596f8ef99f7cfdaa016acdd7e1793d9ebe89a44c 100644 (file)
@@ -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];