From b11bc4b34ed75a2f902aeaccfdb9e21da794cba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 5 Mar 2021 09:24:30 +0000 Subject: [PATCH] Fixed hardcoded ProxySQL port and two typos calling the invalid connection handler on 'restore_admin' --- test/tap/tests/test_ps_async-t.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/tap/tests/test_ps_async-t.cpp b/test/tap/tests/test_ps_async-t.cpp index c4e685f60..bd281ffdb 100644 --- a/test/tap/tests/test_ps_async-t.cpp +++ b/test/tap/tests/test_ps_async-t.cpp @@ -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(); @@ -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; } @@ -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; }