Disable multi-MaxScale initialization by default
Only tests that require multiple MaxScale instances should enable the multi-MaxScale mode.
This commit is contained in:
@ -16,6 +16,7 @@ namespace maxscale
|
||||
{
|
||||
static bool start = true;
|
||||
static bool check_nodes = true;
|
||||
static bool multiple_maxscales = false;
|
||||
static std::string required_repl_version;
|
||||
static std::string required_galera_version;
|
||||
}
|
||||
@ -62,6 +63,11 @@ void TestConnections::require_galera_version(const char *version)
|
||||
maxscale::required_galera_version = version;
|
||||
}
|
||||
|
||||
void TestConnections::multiple_maxscales(bool value)
|
||||
{
|
||||
maxscale::multiple_maxscales = value;
|
||||
}
|
||||
|
||||
TestConnections::TestConnections(int argc, char *argv[]):
|
||||
enable_timeouts(true),
|
||||
global_result(0),
|
||||
@ -285,7 +291,7 @@ TestConnections::TestConnections(int argc, char *argv[]):
|
||||
{
|
||||
init_maxscale();
|
||||
|
||||
if (!secondary_maxscale_IP.empty())
|
||||
if (maxscale::multiple_maxscales && !secondary_maxscale_IP.empty())
|
||||
{
|
||||
set_active_maxscale(MXS_SECONDARY);
|
||||
init_maxscale();
|
||||
|
Reference in New Issue
Block a user