From 33b4f306fc6dacc5d8668d849d7ff0e638481ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 16 May 2023 19:02:08 +0000 Subject: [PATCH] Fix TAP reg_test_3504-change_user-t for new values of switching_auth_type Because of the implementation of caching_sha2_password, values of switching_auth_type are shifted by 1 --- test/tap/tests/reg_test_3504-change_user-t.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/tap/tests/reg_test_3504-change_user-t.cpp b/test/tap/tests/reg_test_3504-change_user-t.cpp index fa9f09b902..8251c958ac 100644 --- a/test/tap/tests/reg_test_3504-change_user-t.cpp +++ b/test/tap/tests/reg_test_3504-change_user-t.cpp @@ -106,11 +106,11 @@ void perform_helper_test( act_SSL_val = output_res.at("ssl_enabled"); if (auth == "mysql_clear_password") { - exp_switching_auth_type = 0; + exp_switching_auth_type = -1; } else if (auth == "mysql_native_password") { - exp_switching_auth_type = 0; + exp_switching_auth_type = -1; } else if (auth == "caching_sha2_password") { - exp_switching_auth_type = 1; + exp_switching_auth_type = 0; } act_ch_usernames.push_back(output_res.at("client_com_change_user_1"));