aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-09-28 12:34:37 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-09-28 16:31:41 +0200
commitdbdc9b86621de0223bf691ec6c42bff8a573389f (patch)
tree5c712ce50455668a282da7b543ed26b2d3f88c6e /tests/src
parent23671f07e659bc316de91aa367434c71c3af3fe6 (diff)
downloadsonarqube-dbdc9b86621de0223bf691ec6c42bff8a573389f.tar.gz
sonarqube-dbdc9b86621de0223bf691ec6c42bff8a573389f.zip
Adjust performance tests expected timings
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/performance/scanner/HighlightingTest.java4
-rw-r--r--tests/src/test/java/org/sonarqube/tests/performance/scanner/IssuesModeTest.java2
-rw-r--r--tests/src/test/java/org/sonarqube/tests/performance/scanner/MemoryTest.java2
-rw-r--r--tests/src/test/java/org/sonarqube/tests/performance/server/ComputeEnginePerfTest.java2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/performance/scanner/HighlightingTest.java b/tests/src/test/java/org/sonarqube/tests/performance/scanner/HighlightingTest.java
index 3a8c34282e3..8942d9c0088 100644
--- a/tests/src/test/java/org/sonarqube/tests/performance/scanner/HighlightingTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/performance/scanner/HighlightingTest.java
@@ -97,10 +97,10 @@ public class HighlightingTest extends AbstractPerfTest {
BuildResult result = orchestrator.executeBuild(scanner);
System.out.println("Total time: " + MavenLogs.extractTotalTime(result.getLogs()));
- perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 25700L);
+ perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 28000L);
Properties prof = readProfiling(baseDir, "highlighting");
- perfRule.assertDurationAround(Long.valueOf(prof.getProperty("Xoo Highlighting Sensor")), 9600L);
+ perfRule.assertDurationAround(Long.valueOf(prof.getProperty("Xoo Highlighting Sensor")), 10000L);
}
}
diff --git a/tests/src/test/java/org/sonarqube/tests/performance/scanner/IssuesModeTest.java b/tests/src/test/java/org/sonarqube/tests/performance/scanner/IssuesModeTest.java
index 56637bb5e0d..b4eaaffcfb2 100644
--- a/tests/src/test/java/org/sonarqube/tests/performance/scanner/IssuesModeTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/performance/scanner/IssuesModeTest.java
@@ -67,6 +67,6 @@ public class IssuesModeTest extends AbstractPerfTest {
long duration = System.currentTimeMillis() - start;
System.out.println("Issues analysis: " + duration + "ms");
- perfRule.assertDurationAround(duration, 4300L);
+ perfRule.assertDurationAround(duration, 4650L);
}
}
diff --git a/tests/src/test/java/org/sonarqube/tests/performance/scanner/MemoryTest.java b/tests/src/test/java/org/sonarqube/tests/performance/scanner/MemoryTest.java
index 14a768bb8ef..1ddf3b9bbac 100644
--- a/tests/src/test/java/org/sonarqube/tests/performance/scanner/MemoryTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/performance/scanner/MemoryTest.java
@@ -89,7 +89,7 @@ public class MemoryTest extends AbstractPerfTest {
.setProjectDir(baseDir);
BuildResult result = orchestrator.executeBuild(scanner);
- perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 8250);
+ perfRule.assertDurationAround(MavenLogs.extractTotalTime(result.getLogs()), 8950);
// Second execution with a property on server side
orchestrator.getServer().newHttpCall("/api/settings/set")
diff --git a/tests/src/test/java/org/sonarqube/tests/performance/server/ComputeEnginePerfTest.java b/tests/src/test/java/org/sonarqube/tests/performance/server/ComputeEnginePerfTest.java
index e6376641a37..5ee6f4e515e 100644
--- a/tests/src/test/java/org/sonarqube/tests/performance/server/ComputeEnginePerfTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/performance/server/ComputeEnginePerfTest.java
@@ -75,7 +75,7 @@ public class ComputeEnginePerfTest extends AbstractPerfTest {
orchestrator.executeBuild(scanner);
- assertComputationDurationAround(350_000L);
+ assertComputationDurationAround(378_000L);
}
private void assertComputationDurationAround(long expectedDuration) throws IOException {