Improve mxs1776_ps_exec_hang

Syncing the slaves should prevent replication lag from affecting the
test. The added logging will help determine what the error was that caused
the failure.
This commit is contained in:
Markus Mäkelä 2019-07-01 10:18:58 +03:00
parent 40f35618ad
commit 0f7c1aa418
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -56,7 +56,8 @@ void run_test(TestConnections& test, TestCase test_case)
mysql_stmt_close(stmt);
test.expect(mysql_query(test.maxscales->conn_rwsplit[0], "SELECT 1") == 0, "Normal queries should work");
test.expect(mysql_query(test.maxscales->conn_rwsplit[0], "SELECT 1") == 0,
"Normal queries should work: %s", mysql_error(test.maxscales->conn_rwsplit[0]));
test.maxscales->disconnect();
}
@ -79,6 +80,7 @@ int main(int argc, char* argv[])
test.try_query(test.maxscales->conn_rwsplit[0], "COMMIT");
test.maxscales->disconnect();
test.repl->sync_slaves();
vector<TestCase> tests =
{