From fbd2580494b44341c6180bbb59fcc02c8b538889 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 31 Aug 2016 14:24:45 +0200 Subject: [PATCH] Update assertion of IssuesModeTest to avoid false positive --- .../sonarqube/perf/scanner/suite/IssuesModeTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/scanner/suite/IssuesModeTest.java b/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/scanner/suite/IssuesModeTest.java index 046e1309f51..3e2b3625e75 100644 --- a/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/scanner/suite/IssuesModeTest.java +++ b/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/scanner/suite/IssuesModeTest.java @@ -20,10 +20,7 @@ package org.sonarsource.sonarqube.perf.scanner.suite; import com.sonar.orchestrator.Orchestrator; -import com.sonar.orchestrator.build.SonarRunner; import com.sonar.orchestrator.build.SonarScanner; -import org.sonarsource.sonarqube.perf.PerfRule; -import org.sonarsource.sonarqube.perf.PerfTestCase; import java.io.File; import java.io.IOException; import org.junit.Before; @@ -31,6 +28,8 @@ import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; +import org.sonarsource.sonarqube.perf.PerfRule; +import org.sonarsource.sonarqube.perf.PerfTestCase; public class IssuesModeTest extends PerfTestCase { @@ -68,6 +67,6 @@ public class IssuesModeTest extends PerfTestCase { long duration = System.currentTimeMillis() - start; System.out.println("Issues analysis: " + duration + "ms"); - perfRule.assertDurationAround(duration, 3600L); + perfRule.assertDurationAround(duration, 3700L); } } -- 2.39.5