File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/test/java/io/jenkins/plugins/junit/storage Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,11 @@ public class TestResultStorageJunitTest {
116116 * @see <a href="http://www.h2database.com/html/features.html#auto_mixed_mode">Automatic Mixed Mode</a>
117117 */
118118 @ Before public void autoServer () throws Exception {
119- LocalH2Database database = (LocalH2Database ) GlobalDatabaseConfiguration .get ().getDatabase ();
120- GlobalDatabaseConfiguration .get ().setDatabase (new LocalH2Database (database .getPath (), true ));
119+ GlobalDatabaseConfiguration gdc = GlobalDatabaseConfiguration .get ();
120+ gdc .setDatabase (null );
121+ LocalH2Database .setDefaultGlobalDatabase ();
122+ LocalH2Database database = (LocalH2Database ) gdc .getDatabase ();
123+ gdc .setDatabase (new LocalH2Database (database .getPath (), true ));
121124 JunitTestResultStorageConfiguration .get ().setStorage (new Impl ());
122125 }
123126
You can’t perform that action at this time.
0 commit comments