You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/04/08 14:04:14 UTC
[22/50] logging-log4j2 git commit: LOG4J2-1343 update test for new
garbage-free Layout mechanism,
logic for dealing with messages larger than buffer size changed
LOG4J2-1343 update test for new garbage-free Layout mechanism, logic for dealing with messages larger than buffer size changed
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/306bfcad
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/306bfcad
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/306bfcad
Branch: refs/heads/LOG4J2-1356
Commit: 306bfcadfa90f1c1580a6e7a59d688db597006a8
Parents: 95c2613
Author: rpopma <rp...@apache.org>
Authored: Thu Apr 7 03:09:45 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Thu Apr 7 03:09:45 2016 +0900
----------------------------------------------------------------------
.../appender/rolling/RollingRandomAccessFileManagerTest.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/306bfcad/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java
index 4baddac..7b6403f 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingRandomAccessFileManagerTest.java
@@ -69,8 +69,7 @@ public class RollingRandomAccessFileManagerTest {
manager.write(data, 0, data.length, flushNow); // no buffer overflow exception
// buffer is full but not flushed yet
- assertEquals(RollingRandomAccessFileManager.DEFAULT_BUFFER_SIZE * 2,
- raf.length());
+ assertEquals(RollingRandomAccessFileManager.DEFAULT_BUFFER_SIZE * 3, raf.length());
}
/**
@@ -98,8 +97,7 @@ public class RollingRandomAccessFileManagerTest {
final int size = RollingRandomAccessFileManager.DEFAULT_BUFFER_SIZE * 3 + 1;
final byte[] data = new byte[size];
manager.write(data, 0, data.length, flushNow); // no exception
- assertEquals(RollingRandomAccessFileManager.DEFAULT_BUFFER_SIZE * 3,
- raf.length());
+ assertEquals(RollingRandomAccessFileManager.DEFAULT_BUFFER_SIZE * 3 + 1, raf.length());
manager.flush();
assertEquals(size, raf.length()); // all data written to file now