Skip to content

Commit

Permalink
Fixed hardcoded ProxySQL port and two typos calling the invalid conne…
Browse files Browse the repository at this point in the history
…ction handler on 'restore_admin'
  • Loading branch information
JavierJF committed Mar 5, 2021
1 parent 4071096 commit b11bc4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tap/tests/test_ps_async-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ int main(int argc, char** argv) {
// configure the connection as not blocking
diag("Setting mysql connection non blocking");
mysql_options(mysql, MYSQL_OPT_NONBLOCK, 0);
if (!mysql_real_connect(mysql, cl.host, cl.username, cl.password, NULL, 6033, NULL, 0)) {
if (!mysql_real_connect(mysql, cl.host, cl.username, cl.password, NULL, cl.port, NULL, 0)) {
fprintf(stderr, "File %s, line %d, Error: %s\n",
__FILE__, __LINE__, mysql_error(mysql));
return exit_status();
Expand Down Expand Up @@ -486,7 +486,7 @@ int main(int argc, char** argv) {
if (mysql_stmt_close(stmt2a)) {
fprintf(stderr, " failed while closing the statement\n");
ok(false, " %s\n", mysql_error(mysql));
restore_admin(mysql);
restore_admin(mysqladmin);

return -1;
}
Expand Down Expand Up @@ -528,7 +528,7 @@ int main(int argc, char** argv) {
if (mysql_stmt_close(stmt2a)) {
fprintf(stderr, " failed while closing the statement\n");
ok(false, " %s\n", mysql_error(mysql));
restore_admin(mysql);
restore_admin(mysqladmin);

return -1;
}
Expand Down

0 comments on commit b11bc4b

Please sign in to comment.