Fix TestBase engine initialization

This commit is contained in:
JeremyStar™ 2024-10-07 01:32:05 +02:00
parent a77794b105
commit a0fdfd2722
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -234,7 +234,7 @@ public class TestBase {
if (Engine.getInstance() == null) { if (Engine.getInstance() == null) {
logger.diag("Initializing engine"); logger.diag("Initializing engine");
System.getProperties().setProperty("sosengine.base.loggerLevel", "crash"); System.getProperties().setProperty("sosengine.base.loggerLevel", "crash");
new Engine(); Engine.initialize();
EngineConfiguration.getInstance().loadDefaultConfiguration(); EngineConfiguration.getInstance().loadDefaultConfiguration();
EngineInternals.getInstance().setShutdownHandler(exitCode -> {}); EngineInternals.getInstance().setShutdownHandler(exitCode -> {});
EngineInternals.getInstance().restrictAccess(InternalAccessArea.SHUTDOWN_HANDLER_UPDATE); EngineInternals.getInstance().restrictAccess(InternalAccessArea.SHUTDOWN_HANDLER_UPDATE);