From 45f39e7fdd7b4281d221c443b801da01a00af881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 18 Jun 2018 12:57:54 +0300 Subject: [PATCH] Wait for monitor in mxs1719 Replaced hard-coded sleep with dynamic waiting. --- maxscale-system-test/mxs1719.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maxscale-system-test/mxs1719.cpp b/maxscale-system-test/mxs1719.cpp index 9d60ca768..efb634ea3 100644 --- a/maxscale-system-test/mxs1719.cpp +++ b/maxscale-system-test/mxs1719.cpp @@ -75,8 +75,7 @@ int main(int argc, char* argv[]) { if (test.maxscales->start() == 0) { - // Give the monitor a few seconds to monitor the servers - sleep(5); + test.maxscales->wait_for_monitor(); if (test.maxscales->connect_rwsplit() == 0) {