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:
@ -395,6 +395,11 @@ TestConnections::~TestConnections()
|
|||||||
delete galera;
|
delete galera;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (maxscale::multiple_maxscales)
|
||||||
|
{
|
||||||
|
maxscales->stop_all();
|
||||||
|
}
|
||||||
|
|
||||||
if (global_result)
|
if (global_result)
|
||||||
{
|
{
|
||||||
// This causes the test to fail if a core dump is found
|
// This causes the test to fail if a core dump is found
|
||||||
|
|||||||
Reference in New Issue
Block a user