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() { private void dropAllTables() {
String dbName = System.getenv(CIProperties.MYSQL_DATABASE);
underTest.executeTransaction(new Transaction() { underTest.executeTransaction(new Transaction() {
@Override @Override
protected void performOperations() { protected void performOperations() {
execute("DROP DATABASE Plan"); execute("DROP DATABASE " + dbName);
execute("CREATE DATABASE Plan"); execute("CREATE DATABASE " + dbName);
execute("USE Plan"); execute("USE " + dbName);
} }
}); });
} }