From a663ea2e80b1c7da56757d5b88d87efe2cf17e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 12 Apr 2018 10:29:26 +0300 Subject: [PATCH] Sync slaves in mxs1071_maxrows The first test could fail due to replication lag. --- maxscale-system-test/mxs1071_maxrows.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maxscale-system-test/mxs1071_maxrows.cpp b/maxscale-system-test/mxs1071_maxrows.cpp index deec523e0..7aaa84dc7 100644 --- a/maxscale-system-test/mxs1071_maxrows.cpp +++ b/maxscale-system-test/mxs1071_maxrows.cpp @@ -297,8 +297,7 @@ int main(int argc, char *argv[]) create_t1(Test->maxscales->conn_rwsplit[0]); insert_into_t1(Test->maxscales->conn_rwsplit[0], 1); Test->stop_timeout(); - sleep(5); - + Test->repl->sync_slaves(); Test->tprintf("**** Test 1 ****\n"); @@ -316,7 +315,8 @@ int main(int argc, char *argv[]) create_t1(Test->maxscales->conn_rwsplit[0]); insert_into_t1(Test->maxscales->conn_rwsplit[0], 3); Test->stop_timeout(); - sleep(5); + Test->repl->sync_slaves(); + Test->tprintf("**** Test 2 ****\n"); exp_rows[0] = 0;