Rename TestConnections::assert() to TestConnections::expect()
Allows the including of <assert.h>.
This commit is contained in:
@ -25,7 +25,7 @@ int main(int argc, char** argv)
|
||||
|
||||
for (auto a : statements)
|
||||
{
|
||||
test.assert(execute_query_check_one(test.maxscales->conn_rwsplit[0], a.first, a.second) == 0,
|
||||
test.expect(execute_query_check_one(test.maxscales->conn_rwsplit[0], a.first, a.second) == 0,
|
||||
"Expected '%s' for query: %s", a.second, a.first);
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ int main(int argc, char** argv)
|
||||
|
||||
for (auto a : oracle_statements)
|
||||
{
|
||||
test.assert(execute_query_check_one(test.maxscales->conn_rwsplit[0], a.first, a.second) == 0,
|
||||
test.expect(execute_query_check_one(test.maxscales->conn_rwsplit[0], a.first, a.second) == 0,
|
||||
"Expected '%s' for query: %s", a.second, a.first);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user