From 345b53fab2bcfa53c7ce54a1a2a273c8c15c4f3e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 17 Dec 2014 09:24:03 +0100 Subject: [PATCH] Adjust assertions of ES perf tests because of upgrade to Elasticsearch 1.4.1 --- .../org/sonar/server/benchmark/SourceIndexBenchmarkTest.java | 3 +-- 1 file changed, 1 insertion(+), 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(); -- 2.39.5