vy commented on code in PR #3945:
URL: https://github.com/apache/logging-log4j2/pull/3945#discussion_r2418766288
##########
log4j-core-test/src/test/java/org/apache/logging/log4j/core/async/AbstractAsyncThreadContextTestBase.java:
##########
@@ -59,6 +60,11 @@ public abstract class AbstractAsyncThreadContextTestBase {
private static TestProperties props;
+ @BeforeEach
+ public void beforeEach() {
+ ThreadContext.clearAll();
+ }
Review Comment:
We could consider repeating the same in an `@AfterAll` method too, but
effective `log4j-core-test/pom.xml` states that `<reuseForks>false`. Hence,
this is good enough for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]