Rename TestConnections::assert() to TestConnections::expect()
Allows the including of <assert.h>.
This commit is contained in:
@ -33,7 +33,7 @@ int main(int argc, char** argv)
|
||||
test.check_maxscale_alive();
|
||||
|
||||
int rc = test.maxscales->ssh_node_f(0, true, "grep 'version_string' /var/lib/maxscale/maxscale.cnf.d/RW-Split-Router.cnf");
|
||||
test.assert(rc == 0, "Generated configuration should have version_string defined and MaxScale should ignore it.");
|
||||
test.expect(rc == 0, "Generated configuration should have version_string defined and MaxScale should ignore it.");
|
||||
|
||||
test.maxscales->ssh_node_f(0, true, "maxadmin alter service RW-Split-Router enable_root_user=false");
|
||||
|
||||
@ -41,7 +41,7 @@ int main(int argc, char** argv)
|
||||
test.check_maxscale_alive();
|
||||
|
||||
rc = test.maxscales->ssh_node_f(0, true, "grep 'version_string' /var/lib/maxscale/maxscale.cnf.d/RW-Split-Router.cnf");
|
||||
test.assert(rc != 0, "Generated configuration should not have version_string defined.");
|
||||
test.expect(rc != 0, "Generated configuration should not have version_string defined.");
|
||||
|
||||
return test.global_result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user