Automatically stop secondary MaxScale

If the test uses two MaxScales, they are automatically stopped after the
test. This prevents the second MaxScale from interfering with subsequent
tests.
This commit is contained in:
Markus Mäkelä
2018-11-09 10:10:48 +02:00
parent 0a9d24230a
commit 00eb7cb4ee

View File

@ -395,6 +395,11 @@ TestConnections::~TestConnections()
delete galera;
}
if (maxscale::multiple_maxscales)
{
maxscales->stop_all();
}
if (global_result)
{
// This causes the test to fail if a core dump is found