From 801d7ccdc718cd4be2493a492b578024b69a3c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 26 Mar 2018 11:12:41 +0300 Subject: [PATCH] Add sleep to pers_02 Adding a short sleep before the second attempt at connection creation is done seems to significantly improve the reliability of the test. --- maxscale-system-test/pers_02.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maxscale-system-test/pers_02.cpp b/maxscale-system-test/pers_02.cpp index d626c6019..5d6eef6c8 100644 --- a/maxscale-system-test/pers_02.cpp +++ b/maxscale-system-test/pers_02.cpp @@ -30,8 +30,11 @@ int main(int argc, char *argv[]) Test->repl->close_connections(); Test->repl->sync_slaves(); - Test->set_timeout(60); + // Increase connection limits and wait a few seconds for the server to catch up Test->repl->execute_query_all_nodes((char *) "set global max_connections = 2000;"); + sleep(10); + + Test->set_timeout(60); Test->add_result(Test->create_connections(0, 70 , true, true, true, true), "Connections creation error \n");