From 8c47e8d6f297e482d9da8e891787486d4d0c1576 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 7 Jun 2024 11:33:38 +0200 Subject: [PATCH] test_wrong_cs_downgrade: clamp error to exact value --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 1952df80d1..cc073eebb0 100644 --- a/tests/api.c +++ b/tests/api.c @@ -68462,8 +68462,8 @@ static int test_wrong_cs_downgrade(void) test_ctx.c_len = sizeof(test_wrong_cs_downgrade_sh); ExpectIntNE(wolfSSL_connect(ssl_c), WOLFSSL_SUCCESS); - ExpectIntNE(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR), - WOLFSSL_ERROR_WANT_READ); + ExpectIntEQ(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR), + MATCH_SUITE_ERROR); wolfSSL_free(ssl_c); wolfSSL_CTX_free(ctx_c);