mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08: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() {
|
||||
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user