Avoid using test.repl->N in MariaDBMonitor tests

The value may not match the nodes used by the test.
This commit is contained in:
Esa Korhonen
2020-11-24 10:42:52 +02:00
parent abd1efefc6
commit 885077b4d0
11 changed files with 20 additions and 19 deletions

View File

@ -123,8 +123,7 @@ void run(TestConnections& test)
{
test.maxscales->wait_for_monitor();
int N = test.repl->N;
cout << "Nodes: " << N << endl;
const int N = 4;
expect(test, "server1", "Master", "Running");
expect(test, "server2", "Slave", "Running");