We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe72f3a commit 2076a8cCopy full SHA for 2076a8c
log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/XmlCompleteFileAppenderTest.java
@@ -82,8 +82,13 @@ public void testFlushAtEndOfBatch() throws Exception {
82
try (final BufferedReader reader = new BufferedReader(new FileReader(logFile))) {
83
line1 = reader.readLine();
84
line2 = reader.readLine();
85
- reader.readLine(); // ignore the empty line after the <Events> root
86
- line3 = reader.readLine();
+
+ String tmp;
87
+ do {
88
+ tmp = reader.readLine(); // ignore the empty lines after the <Events> root
89
+ } while (tmp != null && tmp.trim().isEmpty());
90
91
+ line3 = tmp;
92
line4 = reader.readLine();
93
line5 = reader.readLine();
94
} finally {
0 commit comments