From 8de3339bc043f2298cae56cba3fb9e9695bcad54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 19 Dec 2019 14:43:27 +0200 Subject: [PATCH] MXS-619: Restore old test The test now performs the original test of not doing any queries between the opening and closing of sessions. --- maxscale-system-test/open_close_connections.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/maxscale-system-test/open_close_connections.cpp b/maxscale-system-test/open_close_connections.cpp index d565bb740..64bb5e176 100644 --- a/maxscale-system-test/open_close_connections.cpp +++ b/maxscale-system-test/open_close_connections.cpp @@ -25,11 +25,7 @@ void query_thread(TestConnections& test, int thread_id) "Error opening conn to %s:%u, thread num is %d, iteration %ld, error is: %s\n", host, port, thread_id, i, mysql_error(conn)); - if (conn && mysql_errno(conn) == 0) - { - test.try_query(conn, "USE test"); - mysql_close(conn); - } + mysql_close(conn); }; // Keep running the test until we exhaust all available ports