aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-benchmarks
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-12-17 09:24:03 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-12-17 09:24:03 +0100
commit345b53fab2bcfa53c7ce54a1a2a273c8c15c4f3e (patch)
tree9fa455fc7e7dae9b1f5b724c79c1b1ceb2a5046e /server/sonar-server-benchmarks
parent984b936fdaefa5c6c3ddde4006ded6562cf9ea98 (diff)
downloadsonarqube-345b53fab2bcfa53c7ce54a1a2a273c8c15c4f3e.tar.gz
sonarqube-345b53fab2bcfa53c7ce54a1a2a273c8c15c4f3e.zip
Adjust assertions of ES perf tests because of upgrade to Elasticsearch 1.4.1
Diffstat (limited to 'server/sonar-server-benchmarks')
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java
index 643125175f5..44f136b4867 100644
--- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java
+++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java
@@ -23,7 +23,6 @@ package org.sonar.server.benchmark;
import com.google.common.collect.Maps;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
-import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
@@ -82,7 +81,7 @@ public class SourceIndexBenchmarkTest {
long nbLines = files.count.get() * LINES_PER_FILE;
long throughputPerSecond = 1000L * nbLines / period;
LOGGER.info(String.format("%d lines indexed in %d ms (%d docs/second)", nbLines, period, throughputPerSecond));
- benchmark.expectBetween("Throughput to index source lines", throughputPerSecond, 4300L, 4600L);
+ benchmark.expectBetween("Throughput to index source lines", throughputPerSecond, 6000L, 6400L);
// be sure that physical files do not evolve during estimation of size
tester.get(EsClient.class).prepareOptimize(SourceLineIndexDefinition.INDEX).get();