From c18ac52206865366a1ab9edd77a77c3fb76fe1fc Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Tue, 22 Aug 2023 17:58:10 +0200 Subject: [PATCH] SONAR-19725 Fix false positive from QualityGateCheckTest --- .../org/sonar/scanner/qualitygate/QualityGateCheckTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); } -- 2.39.5