From c931c1107785aa10fb525e59ba9f80f1afe08213 Mon Sep 17 00:00:00 2001 From: Andrei Ismail Date: Tue, 7 Jul 2015 11:39:38 +0300 Subject: [PATCH] #306 Shutdown the ProxySQL instance before attempting to wait for it by waiting for the gdb process --- test/proxysql_base_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/proxysql_base_test.py b/test/proxysql_base_test.py index 5b73f83e0..22e91f435 100644 --- a/test/proxysql_base_test.py +++ b/test/proxysql_base_test.py @@ -198,6 +198,12 @@ class ProxySQLBaseTest(TestCase): @classmethod def tearDownClass(cls): + try: + cls.run_query_proxysql_admin("PROXYSQL SHUTDOWN") + except: + # This will throw an exception because it will forcefully shut down + # the connection with the MySQL client. + pass if cls.INTERACTIVE_TEST: cls._gdb_process.wait() # It's essential that pings are stopped __after__ the gdb process has