refactored tests (#147)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file bug711.cpp bug711 regression case (Some MySQL Workbench Management actions hang with R/W split router)
|
||||
* - configure rwsplit with use_sql_variables_in=all
|
||||
* - try SHOW GLOBAL STATUS with all routers
|
||||
* - try SHOW GLOBAL STATUS with all maxscales->routers[0]
|
||||
* - check if Maxscale is still alive
|
||||
*/
|
||||
|
||||
@ -43,15 +43,15 @@ using namespace std;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
TestConnections * Test = new TestConnections(argc, argv);
|
||||
Test->connect_maxscale();
|
||||
Test->maxscales->connect_maxscale(0);
|
||||
Test->set_timeout(10);
|
||||
Test->tprintf("Trying SHOW GLOBAL STATUS against RWSplit\n");
|
||||
Test->try_query(Test->conn_rwsplit, (char *) "SHOW GLOBAL STATUS;");
|
||||
Test->try_query(Test->maxscales->conn_rwsplit[0], (char *) "SHOW GLOBAL STATUS;");
|
||||
Test->tprintf("Trying SHOW GLOBAL STATUS against ReadConn master\n");
|
||||
Test->try_query(Test->conn_master, (char *) "SHOW GLOBAL STATUS;");
|
||||
Test->try_query(Test->maxscales->conn_master[0], (char *) "SHOW GLOBAL STATUS;");
|
||||
Test->tprintf("Trying SHOW GLOBAL STATUS against ReadConn slave\n");
|
||||
Test->try_query(Test->conn_slave, (char *) "SHOW GLOBAL STATUS;");
|
||||
Test->check_maxscale_alive();
|
||||
Test->try_query(Test->maxscales->conn_slave[0], (char *) "SHOW GLOBAL STATUS;");
|
||||
Test->check_maxscale_alive(0);
|
||||
int rval = Test->global_result;
|
||||
delete Test;
|
||||
return rval;
|
||||
|
Reference in New Issue
Block a user