]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19725 Fix false positive from QualityGateCheckTest
authorMatteo Mara <matteo.mara@sonarsource.com>
Tue, 22 Aug 2023 15:58:10 +0000 (17:58 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 23 Aug 2023 20:03:05 +0000 (20:03 +0000)
sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java

index 558b2b4f4b5f093076b26b8b1d49f7275c3aafdd..d496c49b53afcc91f1a37a225b48193afd666b75 100644 (file)
@@ -29,8 +29,8 @@ import org.junit.runner.RunWith;
 import org.mockito.ArgumentMatcher;
 import org.mockito.Mockito;
 import org.slf4j.event.Level;
-import org.sonar.api.utils.MessageException;
 import org.sonar.api.testfixtures.log.LogTester;
+import org.sonar.api.utils.MessageException;
 import org.sonar.scanner.bootstrap.DefaultScannerWsClient;
 import org.sonar.scanner.bootstrap.GlobalAnalysisMode;
 import org.sonar.scanner.report.CeTaskReportDataHolder;
@@ -87,8 +87,8 @@ public class QualityGateCheckTest {
 
     underTest.stop();
 
-    assertThat(logTester.logs())
-      .containsOnly(
+    assertThat(logTester.logs(Level.INFO))
+      .contains(
         "Waiting for the analysis report to be processed (max 5s)",
         "QUALITY GATE STATUS: PASSED - View details on http://dashboard-url.com");
   }