From dd26cee9305fa490ca4ecc50117da416ed5eca7a Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 8 Jan 2015 12:29:09 +0100 Subject: [PATCH] Fix expected timeouts of server-benchmarks after change of hardware --- .../org/sonar/server/benchmark/IssueIndexBenchmarkTest.java | 2 +- .../org/sonar/server/benchmark/SourceIndexBenchmarkTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java index b2823138a45..50cee518445 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java @@ -112,7 +112,7 @@ public class IssueIndexBenchmarkTest { long period = System.currentTimeMillis() - start; long throughputPerSecond = 1000 * issues.count.get() / period; LOGGER.info(String.format("%d issues indexed in %d ms (%d docs/second)", issues.count.get(), period, throughputPerSecond)); - benchmark.expectBetween("Throughput to index issues", throughputPerSecond, 2300L, 2800L); + benchmark.expectBetween("Throughput to index issues", throughputPerSecond, 3200, 3600); // be sure that physical files do not evolve during estimation of size tester.get(EsClient.class).prepareOptimize("issues").get(); 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 8f010229274..313b407ffbc 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 @@ -88,7 +88,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, 6000L, 6400L); + benchmark.expectBetween("Throughput to index source lines", throughputPerSecond, 7200, 7600); // be sure that physical files do not evolve during estimation of size tester.get(EsClient.class).prepareOptimize(SourceLineIndexDefinition.INDEX).get(); -- 2.39.5