Sync slaves after creating tables in rwsplit_readonly
The test should synchronize the replication to avoid replication lag from breaking the tests.
This commit is contained in:
@ -259,10 +259,14 @@ int main(int argc, char *argv[])
|
|||||||
/** Prepare for tests */
|
/** Prepare for tests */
|
||||||
Test->stop_timeout();
|
Test->stop_timeout();
|
||||||
Test->maxscales->connect_maxscale(0);
|
Test->maxscales->connect_maxscale(0);
|
||||||
execute_query_silent(Test->maxscales->conn_rwsplit[0], "DROP TABLE IF EXISTS test.readonly\n");
|
execute_query_silent(Test->maxscales->conn_rwsplit[0], "DROP TABLE IF EXISTS test.readonly");
|
||||||
execute_query_silent(Test->maxscales->conn_rwsplit[0], "CREATE TABLE test.readonly(id int)\n");
|
execute_query_silent(Test->maxscales->conn_rwsplit[0], "CREATE TABLE test.readonly(id int)");
|
||||||
Test->maxscales->close_maxscale_connections(0);
|
Test->maxscales->close_maxscale_connections(0);
|
||||||
|
|
||||||
|
Test->repl->connect();
|
||||||
|
Test->repl->sync_slaves();
|
||||||
|
Test->repl->disconnect();
|
||||||
|
|
||||||
/** Basic tests */
|
/** Basic tests */
|
||||||
test_basic(Test);
|
test_basic(Test);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user