From a0d12191da0489c4a6fd8869fb9ef87aae56001b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 8 Oct 2018 09:53:30 +0300 Subject: [PATCH] Create test database when processing config template For an unknown reason, the mxs874_slave_recovery test times out unless the test database is created when the config templates are being processed. --- maxscale-system-test/testconnections.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index ce173ff82..3368493b8 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -661,6 +661,10 @@ void TestConnections::process_template(int m, const char* template_name, const c mdn[j]->port[i]); ss << str; } + + mdn[j]->connect(); + execute_query(mdn[j]->nodes[0], "CREATE DATABASE IF NOT EXISTS test"); + mdn[j]->close_connections(); } sprintf(str, " -e \"s/###access_user###/%s/g\" ", maxscales->access_user[m]);