We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AbstractAsyncThreadContextTestBase
1 parent e9556bb commit 4852d12Copy full SHA for 4852d12
log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java
@@ -48,6 +48,7 @@
48
import org.apache.logging.log4j.util.ProviderUtil;
49
import org.apache.logging.log4j.util.Unbox;
50
import org.junit.jupiter.api.BeforeAll;
51
+import org.junit.jupiter.api.BeforeEach;
52
import org.junit.jupiter.api.parallel.ResourceLock;
53
54
@UsingStatusListener
@@ -59,6 +60,11 @@ public abstract class AbstractAsyncThreadContextTestBase {
59
60
61
private static TestProperties props;
62
63
+ @BeforeEach
64
+ public void beforeEach() {
65
+ ThreadContext.clearAll();
66
+ }
67
+
68
@BeforeAll
69
public static void beforeClass() {
70
props.setProperty("log4j2.enableThreadlocals", true);
0 commit comments