diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-05-18 14:13:06 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-05-18 14:13:06 +0200 |
commit | 1fb7da126ba0f8baf2a03f2d878897f84612e413 (patch) | |
tree | a1a0ac658d3a2006976f8085713fb3d030ecf634 /sonar-scanner-engine/src | |
parent | 40f237a54cc6b458273499a2fd4215419764408d (diff) | |
download | sonarqube-1fb7da126ba0f8baf2a03f2d878897f84612e413.tar.gz sonarqube-1fb7da126ba0f8baf2a03f2d878897f84612e413.zip |
Fix test FP
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/log/LogListenerTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/log/LogListenerTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/log/LogListenerTest.java index d7cc77237d7..867c53b5013 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/log/LogListenerTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/log/LogListenerTest.java @@ -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()); } |