Skip to content

Commit f675bb9

Browse files
committed
fix relevant test in relation to issues/1007
Signed-off-by: ceki <ceki@qos.ch>
1 parent 4fef348 commit f675bb9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

logback-classic/src/test/java/ch/qos/logback/classic/rolling/TimeBasedRollingWithConfigFileTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,10 @@ public void totalSizeCapSmallerThanMaxFileSize() throws Exception {
192192
// expectedFilenameList.add(randomOutputDir + "z" + testId);
193193
RollingFileAppender<ILoggingEvent> rfa = (RollingFileAppender<ILoggingEvent>) root.getAppender("ROLLING");
194194

195-
statusChecker.assertContainsMatch(
196-
"totalSizeCap of \\[\\d* \\w*\\] is smaller than maxFileSize \\[\\d* \\w*\\] which is non-sensical");
197-
assertFalse(rfa.isStarted());
195+
// totalSizeCap of [10 Bytes] is much smaller than maxFileSize [250 Bytes] which is non-sensical, even taking compression into account.
196+
statusChecker.assertContainsMatch(Status.WARN,
197+
"totalSizeCap of \\[\\d* \\w*\\] is much smaller than maxFileSize \\[\\d* \\w*\\] which is non-sensical, even taking compression into account.");
198+
assertTrue(rfa.isStarted());
198199

199200
}
200201

0 commit comments

Comments
 (0)