From 010e903d8e03514351cab13595060a21fd017a44 Mon Sep 17 00:00:00 2001 From: Falko Modler Date: Fri, 25 Mar 2022 00:59:47 +0100 Subject: [PATCH] Guard BasicLoggingEnabler for concurrent test execution via synchronized --- .../main/java/io/quarkus/test/junit/BasicLoggingEnabler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }