From d12f2e96085ec80308239f0777c0b0af80ec210e Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 2 Feb 2016 09:44:19 +0100 Subject: [PATCH] SONAR-7257 Fix expected time to persist sources --- .../org/sonar/server/benchmark/PersistFileSourcesStepTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java index 636d3bf8d38..e36f1033a2c 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java @@ -105,7 +105,7 @@ public class PersistFileSourcesStepTest { assertThat(dbTester.countRowsOfTable("file_sources")).isEqualTo(NUMBER_OF_FILES); LOGGER.info(String.format("File sources have been persisted in %d ms", duration)); - benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 93700, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); + benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 40000L, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); } private File prepareReport() throws IOException { -- 2.39.5