You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/08/19 07:15:50 UTC

[25/50] logging-log4j2 git commit: Use a ThreadContextRule to clean up tests.

Use a ThreadContextRule to clean up tests.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7d21a6c3
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7d21a6c3
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7d21a6c3

Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure
Commit: 7d21a6c38488003f30c2608753a1236a2cca49db
Parents: d157cd9
Author: Gary Gregory <gg...@apache.org>
Authored: Mon Aug 15 15:52:31 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Mon Aug 15 15:52:31 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/core/layout/GelfLayoutTest.java  | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7d21a6c3/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/GelfLayoutTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/GelfLayoutTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/GelfLayoutTest.java
index 7ed9eeb..268d5d3 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/GelfLayoutTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/GelfLayoutTest.java
@@ -112,8 +112,6 @@ public class GelfLayoutTest {
         final Exception exception = new RuntimeException("some error");
         root.error(LINE3, exception);
 
-        ThreadContext.clearMap();
-
         formattedAppender.stop();
 
         final List<LogEvent> events = eventAppender.getEvents();