From: Eric Hartmann Date: Mon, 13 Nov 2017 12:33:53 +0000 (+0100) Subject: Update timings for BootstrappingTest X-Git-Tag: 7.0-RC1~317 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0369e48456a4ad3c238a9ad0b8980f77ed36e612;p=sonarqube.git Update timings for BootstrappingTest --- diff --git a/tests/src/test/java/org/sonarqube/tests/performance/scanner/BootstrappingTest.java b/tests/src/test/java/org/sonarqube/tests/performance/scanner/BootstrappingTest.java index e998fd6f0b8..d8de2f52043 100644 --- a/tests/src/test/java/org/sonarqube/tests/performance/scanner/BootstrappingTest.java +++ b/tests/src/test/java/org/sonarqube/tests/performance/scanner/BootstrappingTest.java @@ -27,7 +27,6 @@ import java.io.IOException; import org.apache.commons.io.FileUtils; import org.junit.BeforeClass; import org.junit.ClassRule; -import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -79,11 +78,11 @@ public class BootstrappingTest extends AbstractPerfTest { BuildResult result = orchestrator.executeBuild(scanner); // First analysis - perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 22800L); + perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 7900L); result = orchestrator.executeBuild(scanner); // Second analysis is longer since we load project referential - perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 27200L); + perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 8400L); } private static File prepareProjectWithManyFlatModules(int SIZE) throws IOException { @@ -121,11 +120,11 @@ public class BootstrappingTest extends AbstractPerfTest { BuildResult result = orchestrator.executeBuild(scanner); // First analysis - perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 8900L); + perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 6300L); result = orchestrator.executeBuild(scanner); // Second analysis - perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 9300L); + perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 6300L); } private static File prepareProjectWithManyNestedModules(int SIZE) throws IOException {