Fix OfflineDurableSubscriberTimeoutTest on some machine (including Jenkins)

This commit is contained in:
Jean-Baptiste Onofré 2022-04-02 06:41:51 +02:00
parent 2959d800fe
commit ffab5274a4
1 changed files with 3 additions and 2 deletions

View File

@ -129,8 +129,9 @@ public class OfflineDurableSubscriberTimeoutTest extends org.apache.activemq.Tes
@Override
public void append(LogEvent event) {
if (event.getLevel().isMoreSpecificThan(Level.WARN) &&
!event.getMessage().getFormattedMessage().contains("Store limit")) {
LOG.info("received unexpected log message: " + event.getMessage());
!event.getMessage().getFormattedMessage().contains("Store limit") &&
!event.getMessage().getFormattedMessage().contains("resetting to 70% of maximum available")) {
LOG.info("** received unexpected log message: " + event.getMessage().getFormattedMessage() + " [" + event.getLoggerName() + "] (" + event.getLevel().toString() + ")");
foundLogMessage.set(true);
}
}