From c6e51e75138a9aff43a7e0732d56be7dc5733aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 5 Nov 2018 23:39:54 +0200 Subject: [PATCH] Shorten mxs1585 The test description talks about putting the master into maintenance mode but it spends most of the time putting slaves into maintenance mode. To make the test more precise (and fast) the test can be reduced to blocking the most often used slave and the master. The iteration count can also be lowered from five to two to get at least two cycles of maintenance mode. --- maxscale-system-test/mxs1585.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maxscale-system-test/mxs1585.cpp b/maxscale-system-test/mxs1585.cpp index b6c590370..dc78293fa 100644 --- a/maxscale-system-test/mxs1585.cpp +++ b/maxscale-system-test/mxs1585.cpp @@ -50,9 +50,9 @@ int main(int argc, char** argv) pthread_create(&a, NULL, query_thr, &test); } - for (int i = 0; i < 5; i++) + for (int i = 0; i < 2; i++) { - for (int x = 1; x <= 4; x++) + for (int x = 1; x <= 2; x++) { test.maxscales->ssh_node_f(0, true, "maxadmin set server server%d maintenance", x); sleep(1);