Repository: logging-log4j2 Updated Branches: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure [created] 3c1d7149c
bugfix: clear system property that modifies ringbuffer size before running tests to ensure test execution order will not impact results Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/159bb572 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/159bb572 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/159bb572 Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure Commit: 159bb57246446e07e41fb88060c0307810b56eaa Parents: dcade9e Author: rpopma <[email protected]> Authored: Tue Jul 26 23:53:52 2016 +0900 Committer: rpopma <[email protected]> Committed: Tue Jul 26 23:53:52 2016 +0900 ---------------------------------------------------------------------- .../src/test/java/org/apache/logging/log4j/util/UnboxTest.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/159bb572/log4j-api/src/test/java/org/apache/logging/log4j/util/UnboxTest.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/test/java/org/apache/logging/log4j/util/UnboxTest.java b/log4j-api/src/test/java/org/apache/logging/log4j/util/UnboxTest.java index 3a0cb34..39ab98f 100644 --- a/log4j-api/src/test/java/org/apache/logging/log4j/util/UnboxTest.java +++ b/log4j-api/src/test/java/org/apache/logging/log4j/util/UnboxTest.java @@ -17,6 +17,7 @@ package org.apache.logging.log4j.util; +import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.*; @@ -25,6 +26,10 @@ import static org.junit.Assert.*; * Tests the Unbox class. */ public class UnboxTest { + @BeforeClass + public static void beforeClass() { + System.clearProperty("log4j.unbox.ringbuffer.size"); + } @Test public void testBoxClaimsItHas32Slots() throws Exception {
