forked from StarOpenSource/Engine
Fix TestBase engine initialization
This commit is contained in:
parent
a77794b105
commit
a0fdfd2722
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue