aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}