QUIC: Fix multistream script 19 stochastic test failure
authorHugo Landau <hlandau@openssl.org>
Thu, 6 Jul 2023 14:23:05 +0000 (15:23 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 7 Jul 2023 08:03:25 +0000 (09:03 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21379)

test/quic_multistream_test.c

index 7091266c115af912305e8c000aabb3f29db62990..5aefd719fcfc33555c241c50dafa0e1110172669 100644 (file)
@@ -1943,7 +1943,6 @@ static const struct script_op script_18[] = {
      * 1 packet above, which is absurd; thus this ensures we only actually
      * generate TXKUs when we are allowed to.
      */
-    OP_CHECK                (check_key_update_ge, 4)
     OP_CHECK                (check_key_update_lt, 240)
 
     /*
@@ -1969,6 +1968,12 @@ static const struct script_op script_19[] = {
     OP_S_BIND_STREAM_ID     (a, C_BIDI_ID(0))
     OP_S_READ_EXPECT        (a, "apple", 5)
 
+    OP_C_WRITE              (DEFAULT, "orange", 6)
+    OP_S_READ_EXPECT        (a, "orange", 6)
+
+    OP_S_WRITE              (a, "strawberry", 10)
+    OP_C_READ_EXPECT        (DEFAULT, "strawberry", 10)
+
     OP_CHECK                (check_key_update_lt, 1)
     OP_CHECK                (trigger_key_update, 0)