Skip to content

Commit

Permalink
Guard BasicLoggingEnabler for concurrent test execution via synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
famod committed Mar 24, 2022
1 parent 9c3d1ae commit 010e903
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 010e903

Please sign in to comment.