aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-01-22 14:29:26 +0000
committerHugo Landau <hlandau@openssl.org>2024-02-08 16:50:00 +0000
commit9b35ce2ba0aaa005199b7d84edc7ddeac8478475 (patch)
treea3f389f77891f4c1edead724d8b342c29506732c
parent39a387f46c1b4f85af4a3a9cf98e50772d117485 (diff)
downloadopenssl-9b35ce2ba0aaa005199b7d84edc7ddeac8478475.tar.gz
QUIC MULTISTREAM TEST: Make test resilient on stochastic platforms
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23360)
-rw-r--r--test/quic_multistream_test.c14
1 files 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)