Skip to content

Commit 8c47e8d

Browse files
committed
test_wrong_cs_downgrade: clamp error to exact value
1 parent 1c51465 commit 8c47e8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68462,8 +68462,8 @@ static int test_wrong_cs_downgrade(void)
6846268462
test_ctx.c_len = sizeof(test_wrong_cs_downgrade_sh);
6846368463

6846468464
ExpectIntNE(wolfSSL_connect(ssl_c), WOLFSSL_SUCCESS);
68465-
ExpectIntNE(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR),
68466-
WOLFSSL_ERROR_WANT_READ);
68465+
ExpectIntEQ(wolfSSL_get_error(ssl_c, WOLFSSL_FATAL_ERROR),
68466+
MATCH_SUITE_ERROR);
6846768467

6846868468
wolfSSL_free(ssl_c);
6846968469
wolfSSL_CTX_free(ctx_c);

0 commit comments

Comments
 (0)