Skip to content

Commit

Permalink
Allow PCT testing with database-sqlite (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Mar 26, 2024
1 parent 0d9c350 commit 05ad403
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ public RealtimeJUnitStepTest(boolean usePluggableStorage) {

public void autoServer() throws Exception {
if (usePluggableStorage) {
LocalH2Database database = (LocalH2Database) GlobalDatabaseConfiguration.get().getDatabase();
GlobalDatabaseConfiguration.get().setDatabase(new LocalH2Database(database.getPath(), true));
GlobalDatabaseConfiguration gdc = GlobalDatabaseConfiguration.get();
gdc.setDatabase(null);
LocalH2Database.setDefaultGlobalDatabase();
LocalH2Database database = (LocalH2Database) gdc.getDatabase();
gdc.setDatabase(new LocalH2Database(database.getPath(), true));
JunitTestResultStorageConfiguration.get().setStorage(new H2JunitTestResultStorage());
}
}
Expand Down

0 comments on commit 05ad403

Please sign in to comment.