From 54cb6991d11518130df49175746cc505f66b64ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 17 Apr 2019 09:19:09 +0300 Subject: [PATCH] Wait for the monitor in mxs559_block_master The test seems to fail from time to time due to the monitor not picking up the master state fast enough. To prevent this, the test needs to wait for at least one monitor interval. --- maxscale-system-test/mxs559_block_master.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/maxscale-system-test/mxs559_block_master.cpp b/maxscale-system-test/mxs559_block_master.cpp index 9e9d64ebc..919708086 100644 --- a/maxscale-system-test/mxs559_block_master.cpp +++ b/maxscale-system-test/mxs559_block_master.cpp @@ -114,6 +114,7 @@ int main(int argc, char* argv[]) test.try_query(test.maxscales->conn_rwsplit[0], "DROP TABLE IF EXISTS t1"); test.maxscales->close_maxscale_connections(0); + test.maxscales->wait_for_monitor(); test.check_maxscale_alive(0); test.log_excludes(0, "due to authentication failure"); test.log_excludes(0, "due to handshake failure");