Drop created tables in tests

If a table is created in a test, it should also drop the table.
This commit is contained in:
Markus Mäkelä
2018-07-12 11:14:07 +03:00
parent 12b4f67f30
commit 4bf6233d2a
9 changed files with 37 additions and 0 deletions

View File

@ -273,6 +273,10 @@ int main(int argc, char *argv[])
/** More complex tests */
test_complex(Test);
Test->repl->connect();
execute_query(Test->repl->nodes[0], "DROP TABLE test.readonly");
Test->repl->disconnect();
/** Clean up test environment */
Test->repl->flush_hosts();
int rval = Test->global_result;