Fixed DBPatchMySQLRegressionTest using wrong database

This commit is contained in:
Risto Lahtela 2020-03-13 22:06:11 +02:00
parent e2e86cadc3
commit bf7e47eb4c

View File

@ -76,12 +76,13 @@ class DBPatchMySQLRegressionTest extends DBPatchRegressionTest {
}
private void dropAllTables() {
String dbName = System.getenv(CIProperties.MYSQL_DATABASE);
underTest.executeTransaction(new Transaction() {
@Override
protected void performOperations() {
execute("DROP DATABASE Plan");
execute("CREATE DATABASE Plan");
execute("USE Plan");
execute("DROP DATABASE " + dbName);
execute("CREATE DATABASE " + dbName);
execute("USE " + dbName);
}
});
}