]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Increment sleep time in quic_tserver_test less
authorAndrew Dinh <andrewd@openssl.org>
Wed, 6 Aug 2025 17:26:12 +0000 (00:26 +0700)
committerNeil Horman <nhorman@openssl.org>
Mon, 11 Aug 2025 15:53:26 +0000 (11:53 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28187)

test/quic_tserver_test.c

index e3732b11a36eccf93a609a9dd4bcada719cd5ea7..c0f1580f8557cabd5ededa5d5684dd546c9d2d1d 100644 (file)
@@ -320,13 +320,13 @@ static int do_test(int use_thread_assist, int use_fake_time, int use_inject)
 
         if (c_start_idle_test && !c_done_idle_test) {
             /* This is more than our default idle timeout of 30s. */
-            if (idle_units_done < 600) {
+            if (idle_units_done < 6000) {
                 struct timeval tv;
                 int isinf;
 
                 if (!TEST_true(CRYPTO_THREAD_write_lock(fake_time_lock)))
                     goto err;
-                fake_time = ossl_time_add(fake_time, ossl_ms2time(100));
+                fake_time = ossl_time_add(fake_time, ossl_ms2time(10));
                 CRYPTO_THREAD_unlock(fake_time_lock);
 
                 ++idle_units_done;
@@ -340,7 +340,7 @@ static int do_test(int use_thread_assist, int use_fake_time, int use_inject)
                     goto err;
                 if (!isinf && ossl_time_compare(ossl_time_zero(),
                                                 ossl_time_from_timeval(tv)) >= 0)
-                    OSSL_sleep(100); /* Ensure CPU scheduling for test purposes */
+                    OSSL_sleep(10); /* Ensure CPU scheduling for test purposes */
             } else {
                 c_done_idle_test = 1;
             }