From 5bc945df3f9ab92f0f75c3d4c87a0fe881881091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 30 Jan 2018 09:24:09 +0200 Subject: [PATCH] Allow monitor to stabilize in mxs1516 The test needs to give the monitor enough time to detect the change in the replication topology in order for it to work. --- maxscale-system-test/mxs1516.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maxscale-system-test/mxs1516.cpp b/maxscale-system-test/mxs1516.cpp index c1081b4e2..340067374 100644 --- a/maxscale-system-test/mxs1516.cpp +++ b/maxscale-system-test/mxs1516.cpp @@ -17,6 +17,9 @@ int main(int argc, char** argv) test.repl->connect(); test.repl->change_master(1, 0); + // Give the monitor some time to detect it + sleep(5); + test.add_result(execute_query_silent(test.maxscales->conn_master[0], "SELECT 1") == 0, "Query should fail"); // Change the master back to the original one