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:49 UTC
[24/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/d157cd95
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d157cd95
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d157cd95
Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure
Commit: d157cd95a9f8c1f3cbb90236c3f32b56962346e8
Parents: 173f48d
Author: Gary Gregory <gg...@apache.org>
Authored: Mon Aug 15 15:51:41 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Mon Aug 15 15:51:41 2016 -0700
----------------------------------------------------------------------
.../org/apache/logging/log4j/core/layout/SyslogLayoutTest.java | 2 --
1 file changed, 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d157cd95/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/SyslogLayoutTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/SyslogLayoutTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/SyslogLayoutTest.java
index 280881b..8ed87d8 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/SyslogLayoutTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/SyslogLayoutTest.java
@@ -109,8 +109,6 @@ public class SyslogLayoutTest {
msg.put("Amount", "200.00");
root.info(MarkerManager.getMarker("EVENT"), msg);
- ThreadContext.clearMap();
-
appender.stop();
final List<String> list = appender.getMessages();