From: Matteo Mara Date: Tue, 22 Aug 2023 15:58:10 +0000 (+0200) Subject: SONAR-19725 Fix false positive from QualityGateCheckTest X-Git-Tag: 10.2.0.77647~120 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c18ac52206865366a1ab9edd77a77c3fb76fe1fc;p=sonarqube.git SONAR-19725 Fix false positive from QualityGateCheckTest --- diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java index 558b2b4f4b5..d496c49b53a 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/qualitygate/QualityGateCheckTest.java @@ -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"); }