From 291372fd41dce701f0a0af113dede01a1fc47aee Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 25 Feb 2022 21:02:28 +0100 Subject: [PATCH] Add a missing requires_max_content_len Slightly reduce the amount of data so that the test passes with 512. Signed-off-by: Gilles Peskine --- tests/ssl-opt.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 6a016955f..d7f4b713f 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -6365,11 +6365,12 @@ run_test "mbedtls_ssl_get_bytes_avail: no extra data" \ 0 \ -s "Read from client: 100 bytes read$" +requires_max_content_len 474 run_test "mbedtls_ssl_get_bytes_avail: extra data" \ "$P_SRV" \ - "$P_CLI request_size=500" \ + "$P_CLI request_size=450" \ 0 \ - -s "Read from client: 500 bytes read (.*+.*)" + -s "Read from client: 450 bytes read (.*+.*)" # Tests for small client packets