From 339ea9aedb39128a19dc34521ffd5757efb67abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 21 Dec 2017 10:23:18 +0200 Subject: [PATCH] Add a small delay to mxs1476 The test can fail if the Galera nodes aren't synced when the connection to MaxScale is made. Adding a small sleep should allow the Galera cluster to stabilize after the configuration switch. --- maxscale-system-test/mxs1476.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maxscale-system-test/mxs1476.cpp b/maxscale-system-test/mxs1476.cpp index f42cf3158..67852aecd 100644 --- a/maxscale-system-test/mxs1476.cpp +++ b/maxscale-system-test/mxs1476.cpp @@ -55,6 +55,9 @@ int main(int argc, char** argv) "sed -i 's/priority=3/priority=2/' /etc/maxscale.cnf;"); test.maxscales->restart_maxscale(0); + // Give the Galera nodes some time to stabilize + sleep(5); + do_test(test, 0, 1); test.galera->start_node(2);