From d1944d015d099f5e5a6b566183ac9a2413e0c10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 9 Jan 2018 10:27:33 +0200 Subject: [PATCH] Verify that connections fail in bug547 The test assumed that the connections failed but it did not check that it actually did. --- maxscale-system-test/bug547.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/bug547.cpp b/maxscale-system-test/bug547.cpp index 4dfa5001b..3f301df31 100644 --- a/maxscale-system-test/bug547.cpp +++ b/maxscale-system-test/bug547.cpp @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) Test->set_timeout(30); Test->tprintf("Connecting to all MaxScale services, expecting error\n"); - Test->maxscales->connect_maxscale(0); + Test->add_result(Test->maxscales->connect_maxscale(0) == 0, "Connection should fail"); Test->set_timeout(30); Test->tprintf("Trying some queries, expecting failure, but not a crash\n");