diff --git a/maxscale-system-test/mxs1743_rconn_bitmask.cpp b/maxscale-system-test/mxs1743_rconn_bitmask.cpp index 1116fb9b0..d32a82a46 100644 --- a/maxscale-system-test/mxs1743_rconn_bitmask.cpp +++ b/maxscale-system-test/mxs1743_rconn_bitmask.cpp @@ -44,8 +44,13 @@ int main(int argc, char** argv) execute_query_silent(test.repl->nodes[0], "DROP USER IF EXISTS 'mxs1743'@'%'"); test.try_query(test.repl->nodes[0], "%s", "CREATE USER 'mxs1743'@'%' IDENTIFIED BY 'mxs1743'"); test.try_query(test.repl->nodes[0], "%s", "GRANT ALL ON *.* TO 'mxs1743'@'%'"); + + test.tprintf("Syncing slaves"); + test.set_timeout(60); test.repl->sync_slaves(); + test.tprintf("Opening new connections to verify readconnroute works"); + for (int i = 0; i < 20; i++) { // Open a connection and make sure it works @@ -60,6 +65,7 @@ int main(int argc, char** argv) // Give the connections a few seconds to establish sleep(5); + test.tprintf("Checking the number of connections"); std::string query = "SELECT COUNT(*) AS connections FROM information_schema.processlist WHERE user = 'mxs1743'"; char master_connections[1024]; char slave_connections[1024];