From e35aecddb916a00fae8da6a8d1c1514cb7c294fe Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Wed, 10 Aug 2022 19:16:30 +0000 Subject: [PATCH] reintroduce port change test --- test/tap/tests/test_sqlite3_server-t.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/tap/tests/test_sqlite3_server-t.cpp b/test/tap/tests/test_sqlite3_server-t.cpp index c6d81437e..cbeb578c7 100644 --- a/test/tap/tests/test_sqlite3_server-t.cpp +++ b/test/tap/tests/test_sqlite3_server-t.cpp @@ -231,7 +231,7 @@ int main(int argc, char** argv) { // plan as many tests as queries plan( 2 /* Fail to connect with wrong username and password */ + successful_queries.size() - + unsuccessful_queries.size() + admin_queries.size() // + sqlite_intf_queries.size() + + unsuccessful_queries.size() + admin_queries.size() + sqlite_intf_queries.size() + 1 /* Connect to new setup interface */ ); @@ -335,7 +335,7 @@ int main(int argc, char** argv) { // Reinitialize MYSQL handle mysql_close(proxysql_sqlite3); proxysql_sqlite3 = mysql_init(NULL); -/* + // Change SQLite interface and connect to new port for (const auto& admin_query : sqlite_intf_queries) { int query_err = mysql_query(proxysql_admin, admin_query.c_str()); @@ -344,7 +344,7 @@ int main(int argc, char** argv) { admin_query.c_str(), __LINE__, mysql_error(proxysql_admin) ); } -*/ + // NOTE: Wait for ProxySQL to reconfigure, changing SQLite3 interface. // Trying to perform a connection immediately after changing the // interface could lead to 'EADDRINUSE' in ProxySQL side.