From ae4801956efbc9eba1971d0b899267a3e8406c42 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 4 Mar 2015 20:53:19 +0100 Subject: [PATCH] Fix error margin of SourceDbBenchmarkTest --- .../java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java index 34dbdf0e3cc..479408f6745 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java @@ -84,7 +84,7 @@ public class SourceDbBenchmarkTest { long period = end - start; long throughputPerSecond = 1000L * counter.get() / period; LOGGER.info(String.format("%d FILE_SOURCES rows scrolled in %d ms (%d rows/second)", counter.get(), period, throughputPerSecond)); - benchmark.expectAround("Throughput to scroll FILE_SOURCES", throughputPerSecond, 120, 0.04); + benchmark.expectAround("Throughput to scroll FILE_SOURCES", throughputPerSecond, 120, 0.08); } finally { DbUtils.closeQuietly(connection); -- 2.39.5