Extend galera_priority test case
The test now verifies that the node priorities are in effect even after MaxScale is restarted.
This commit is contained in:
parent
257034bf3e
commit
f45911caf8
@ -137,6 +137,19 @@ int simple_failover(TestConnections* test)
|
||||
}
|
||||
test->maxscales->close_rwsplit(0);
|
||||
test->tprintf("OK\n");
|
||||
|
||||
/** Restart MaxScale check that states are the same */
|
||||
test->maxscales->restart();
|
||||
sleep(15);
|
||||
test->tprintf("Expecting '%s'...", server_id[2]);
|
||||
if (test->maxscales->connect_rwsplit(0) || check_server_id(test, server_id[2]))
|
||||
{
|
||||
test->tprintf("Test failed after restarting MaxScale.");
|
||||
rval = 1;
|
||||
break;
|
||||
}
|
||||
test->maxscales->close_rwsplit(0);
|
||||
test->tprintf("OK\n");
|
||||
}
|
||||
while (false);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user