aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2023-04-25 08:42:01 -0500
committersonartech <sonartech@sonarsource.com>2023-04-25 20:03:00 +0000
commit052a65d0f2787b85c58f64e235c8d51e26437d59 (patch)
tree9303ba09717886a721fbc503c2d67938ec25f16f /sonar-scanner-engine/src
parent0aca567691b9cfb51f272b2a548e99d3077cfef1 (diff)
downloadsonarqube-052a65d0f2787b85c58f64e235c8d51e26437d59.tar.gz
sonarqube-052a65d0f2787b85c58f64e235c8d51e26437d59.zip
[NO JIRA] fix FP
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/util/ProgressReportTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/util/ProgressReportTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/util/ProgressReportTest.java
index d7cbf83287e..769704f19e3 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/util/ProgressReportTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/util/ProgressReportTest.java
@@ -62,11 +62,12 @@ public class ProgressReportTest {
underTest.start("start");
underTest.message("Some message");
boolean logged = false;
- Thread.sleep(1000);
+ Thread.sleep(2000);
while (!logged) {
logged = logTester.logs().contains("Some message");
}
underTest.stop("stop");
+ Thread.sleep(1000);
assertThat(logTester.logs().stream().anyMatch(s -> Pattern.matches("stop", s))).isTrue();
}