From 9b35ce2ba0aaa005199b7d84edc7ddeac8478475 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 22 Jan 2024 14:29:26 +0000 Subject: QUIC MULTISTREAM TEST: Make test resilient on stochastic platforms Reviewed-by: Neil Horman Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23360) --- test/quic_multistream_test.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/quic_multistream_test.c b/test/quic_multistream_test.c index b7fa98dbd6..42ae1ede42 100644 --- a/test/quic_multistream_test.c +++ b/test/quic_multistream_test.c @@ -5399,16 +5399,22 @@ static const struct script_op script_82[] = { OP_CHECK2 (check_avail_streams, 2, 99) OP_CHECK2 (check_avail_streams, 3, 100) - OP_S_NEW_STREAM_BIDI (a, S_BIDI_ID(0)) - OP_S_WRITE (a, "x", 1) + OP_S_NEW_STREAM_BIDI (c, S_BIDI_ID(0)) + OP_S_WRITE (c, "x", 1) + + OP_C_ACCEPT_STREAM_WAIT (c) + OP_C_READ_EXPECT (c, "x", 1) OP_CHECK2 (check_avail_streams, 0, 99) OP_CHECK2 (check_avail_streams, 1, 99) OP_CHECK2 (check_avail_streams, 2, 99) OP_CHECK2 (check_avail_streams, 3, 100) - OP_S_NEW_STREAM_UNI (b, S_UNI_ID(0)) - OP_S_WRITE (b, "x", 1) + OP_S_NEW_STREAM_UNI (d, S_UNI_ID(0)) + OP_S_WRITE (d, "x", 1) + + OP_C_ACCEPT_STREAM_WAIT (d) + OP_C_READ_EXPECT (d, "x", 1) OP_CHECK2 (check_avail_streams, 0, 99) OP_CHECK2 (check_avail_streams, 1, 99) -- cgit v1.2.3