diff --git a/maxscale-system-test/bug676.cpp b/maxscale-system-test/bug676.cpp index 088e9a5bd..b31715a82 100644 --- a/maxscale-system-test/bug676.cpp +++ b/maxscale-system-test/bug676.cpp @@ -26,7 +26,7 @@ int main(int argc, char *argv[]) test.stop_timeout(); test.tprintf("Waiting until the monitor picks a new master"); - sleep(5); + test.maxscales->wait_for_monitor(); test.set_timeout(30);