diff --git a/tests/api.c b/tests/api.c index 5a2b904c8..c8b992c6e 100644 --- a/tests/api.c +++ b/tests/api.c @@ -24713,7 +24713,7 @@ static int test_wc_ecc_export_x963_ex (void) if (ret == BAD_FUNC_ARG) { ret = wc_ecc_export_x963_ex(&key, out, &badOutLen, COMP); } - if (ret == BUFFER_E) { + if (ret == LENGTH_ONLY_E) { key.idx = -4; ret = wc_ecc_export_x963_ex(&key, out, &outlen, COMP); }