Skip to content

Commit

Permalink
Allow PCT testing with database-sqlite (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Mar 26, 2024
1 parent 76fa010 commit 65b14fa
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ public class TestResultStorageJunitTest {
* @see <a href="http://www.h2database.com/html/features.html#auto_mixed_mode">Automatic Mixed Mode</a>
*/
@Before public void autoServer() throws Exception {
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 Impl());
}

Expand Down

0 comments on commit 65b14fa

Please sign in to comment.