]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/quicapitest.c: Increase timeout of test_fin_only_blocking to 40ms
authorIngo Franzki <ifranzki@linux.ibm.com>
Mon, 10 Feb 2025 14:45:26 +0000 (15:45 +0100)
committerNeil Horman <nhorman@openssl.org>
Tue, 11 Feb 2025 18:30:49 +0000 (13:30 -0500)
Running this test on heavily loaded systems may cause the SSL_read_ex() to
take more than 20ms, due to concurrent workload.

Increase the timeout to 40ms to allow a little bit more time.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26693)

(cherry picked from commit 0e93f64723894e6420faa8b95055ce637894abc1)

test/quicapitest.c

index 9a678c4a03525fe54197f53e103eea7e61cc4bb6..31b586bd5ba8d1771769ee2ebdc685af31bfde07 100644 (file)
@@ -262,9 +262,9 @@ static int test_fin_only_blocking(void)
     if (!TEST_int_eq(SSL_get_error(clientquic, 0), SSL_ERROR_ZERO_RETURN)
                /*
                 * We expect the SSL_read_ex to not have blocked so this should
-                * be very fast. 20ms should be plenty.
+                * be very fast. 40ms should be plenty.
                 */
-            || !TEST_uint64_t_le(ossl_time2ms(timediff), 20))
+            || !TEST_uint64_t_le(ossl_time2ms(timediff), 40))
         goto end;
 
     if (!TEST_true(qtest_shutdown(qtserv, clientquic)))