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:
parent
40f35618ad
commit
0f7c1aa418
@ -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 =
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user