diff --git a/tests/regression/method.c b/tests/regression/method.c
index 73d8bbf591969ba95eb7947b0099868a26ed792a..a43e9148965a22d0a1b7785ed3c582a6535193bd 100644
--- a/tests/regression/method.c
+++ b/tests/regression/method.c
@@ -293,6 +293,7 @@ static int advanced_config(
     ZSTD_CCtx* cctx,
     buffer_state_t* state,
     config_t const* config) {
+    ZSTD_CCtx_reset(cctx, ZSTD_reset_session_and_parameters);
     for (size_t p = 0; p < config->param_values.size; ++p) {
         param_value_t const pv = config->param_values.data[p];
         if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, pv.param, pv.value))) {