mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-12 22:59:26 +01:00
Fixed DBPatchMySQLRegressionTest using wrong database
This commit is contained in:
parent
e2e86cadc3
commit
bf7e47eb4c
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user