From ff9728c6d5d23ebaa73cb729c8110c0582e66280 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 10 Jul 2023 11:12:50 +0100 Subject: [PATCH] Fix test_quic_write_read() Fix the "test 2" case of test_quic_write_read(). It is intended to be run in blocking mode. The result of a bad interaction between #21087 and #21332 Reviewed-by: Tim Hudson Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/21409) --- test/quicapitest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/quicapitest.c b/test/quicapitest.c index 64b53c87f4c..901cc21677b 100644 --- a/test/quicapitest.c +++ b/test/quicapitest.c @@ -60,7 +60,7 @@ static int test_quic_write_read(int idx) if (!TEST_ptr(cctx) || !TEST_true(qtest_create_quic_objects(libctx, cctx, cert, privkey, - idx == 1 ? QTEST_FLAG_BLOCK : 0, + idx >= 1 ? QTEST_FLAG_BLOCK : 0, &qtserv, &clientquic, NULL)) || !TEST_true(SSL_set_tlsext_host_name(clientquic, "localhost")) || !TEST_true(qtest_create_quic_connection(qtserv, clientquic))) -- 2.47.2