summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-09-04 18:53:13 +0200
committerHugo Landau <hlandau@openssl.org>2023-09-06 11:32:14 +0200
commit025535ecd11bdebd8eb28ed4f0f6b509b1b54577 (patch)
tree34445d32ef3d3bd2363c5913f7e4ac74028244fa /test
parentQUIC MULTISTREAM TEST: Adjust spin behaviour (diff)
downloadopenssl-025535ecd11bdebd8eb28ed4f0f6b509b1b54577.tar.xz
openssl-025535ecd11bdebd8eb28ed4f0f6b509b1b54577.zip
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);
}