[TEST] Logger names differ based on the classpath, inside the IDE the package name is used as a prefix

This commit is contained in:
Simon Willnauer 2014-04-25 12:36:32 +02:00
parent b7325d005b
commit 0b3605f4f2
1 changed files with 2 additions and 1 deletions

View File

@ -1140,9 +1140,10 @@ public class InternalEngineTests extends ElasticsearchTestCase {
@Override
protected void append(LoggingEvent event) {
if (event.getLevel() == Level.TRACE &&
event.getLoggerName().equals("lucene.iw") &&
event.getLoggerName().endsWith("lucene.iw") &&
event.getMessage().toString().contains("IW: apply all deletes during flush") &&
event.getMessage().toString().contains("[index][1] ")) {
sawIndexWriterMessage = true;
}
}