Add more timeouts to mxs1743_rconn_bitmask

The test timed out on a few test runs which means that there is a problem
in the areas where timeouts weren't present.
This commit is contained in:
Markus Mäkelä 2018-09-26 09:41:49 +03:00
parent e54a44d56a
commit 1a41f1a8e2
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -39,6 +39,7 @@ int main(int argc, char** argv)
test.tprintf("Checking that both the master and slave are used");
std::vector<MYSQL*> connections;
test.set_timeout(60);
test.repl->connect();
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'");
@ -62,6 +63,7 @@ int main(int argc, char** argv)
std::string query = "SELECT COUNT(*) AS connections FROM information_schema.processlist WHERE user = 'mxs1743'";
char master_connections[1024];
char slave_connections[1024];
test.set_timeout(60);
find_field(test.repl->nodes[0], query.c_str(), "connections", master_connections);
find_field(test.repl->nodes[1], query.c_str(), "connections", slave_connections);