Skip to content

Commit

Permalink
Fix TAP reg_test_3504-change_user-t for new values of switching_auth_…
Browse files Browse the repository at this point in the history
…type

Because of the implementation of caching_sha2_password, values of switching_auth_type
are shifted by 1
  • Loading branch information
renecannao committed May 16, 2023
1 parent a593407 commit 33b4f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tap/tests/reg_test_3504-change_user-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 33b4f30

Please sign in to comment.