]> source.dussan.org Git - sonarqube.git/commitdiff
Fix test FP
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 18 May 2016 12:13:06 +0000 (14:13 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 18 May 2016 12:13:06 +0000 (14:13 +0200)
sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/log/LogListenerTest.java

index d7cc77237d7d52dc8f9365cf7e3b7f57508ddeeb..867c53b501305c0e2d13f05e679089b144129cce 100644 (file)
@@ -115,11 +115,12 @@ public class LogListenerTest {
    *   Check that log message is not formatted, i.e. has no log level and timestamp.
    */
   private void assertMsgClean(String msg) {
+    // FP: [JOURNAL_FLUSHER] WARNING Journal flush operation took 2,093ms last 8 cycles average is 262ms
+    if (msg.contains("[JOURNAL_FLUSHER]")) {
+      return;
+    }
+
     for (LogOutput.Level l : LogOutput.Level.values()) {
-      // FP: [JOURNAL_FLUSHER] WARNING Journal flush operation took 2,093ms last 8 cycles average is 262ms
-      if(msg.contains("[JOURNAL_FLUSHER]")) {
-        continue;
-      }
       assertThat(msg).doesNotContain(l.toString());
     }