summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-09-04 17:53:13 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-06 10:32:14 +0100
commit025535ecd11bdebd8eb28ed4f0f6b509b1b54577 (patch)
tree34445d32ef3d3bd2363c5913f7e4ac74028244fa /test
parent769c9b1a99b4bb7878a7b4d031d928376de1b8c3 (diff)
QUIC MULTISTREAM TEST: Add comment
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21827)
Diffstat (limited to 'test')
-rw-r--r--test/quic_multistream_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c
index 1138e3e1e6..e8a145726c 100644
--- a/test/quic_multistream_test.c
+++ b/test/quic_multistream_test.c
@@ -557,6 +557,10 @@ static unsigned int server_helper_thread(void *arg)
ossl_quic_tserver_tick(h->s_priv);
ossl_crypto_mutex_unlock(h->server_thread.m);
+ /*
+ * Give the main thread an opportunity to get the mutex, which is
+ * sometimes necessary in some script operations.
+ */
OSSL_sleep(1);
ossl_crypto_mutex_lock(h->server_thread.m);
}