diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/BasicLoggingEnabler.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/BasicLoggingEnabler.java index 69ef16220f810..57eea0fff3e59 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/BasicLoggingEnabler.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/BasicLoggingEnabler.java @@ -48,7 +48,7 @@ public class BasicLoggingEnabler implements BeforeAllCallback { } @Override - public void beforeAll(ExtensionContext context) { + public synchronized void beforeAll(ExtensionContext context) { if (enabled == null) { enabled = context.getConfigurationParameter(CFGKEY_ENABLED).map(Boolean::valueOf).orElse(Boolean.TRUE); }