summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2023-09-12 15:07:29 +0200
committerTomas Mraz <tomas@openssl.org>2023-09-13 22:07:58 +0200
commit556f33837af8691f9b03c716e47d6d06186a6752 (patch)
tree7a51e7559d32190a007c0c26226ec306535acc31 /test
parent21f0b80cd4b32ba80843b812b01a6056daf14093 (diff)
Fix test/quic_tserver_test.c for slow machines
OSSL_sleep(1) isn't enough of a wait for threads to process the next QUIC tick, so it gets increased to OSSL_sleep(100). This may be a tad much, perhaps, but for now, it gives a good margin. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22075)
Diffstat (limited to 'test')
-rw-r--r--test/quic_tserver_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/quic_tserver_test.c b/test/quic_tserver_test.c
index 3d1249863b..980c9a83ff 100644
--- a/test/quic_tserver_test.c
+++ b/test/quic_tserver_test.c
@@ -312,7 +312,7 @@ static int do_test(int use_thread_assist, int use_fake_time, int use_inject)
++idle_units_done;
ossl_quic_conn_force_assist_thread_wake(c_ssl);
- OSSL_sleep(1); /* Ensure CPU scheduling for test purposes */
+ OSSL_sleep(100); /* Ensure CPU scheduling for test purposes */
} else {
c_done_idle_test = 1;
}