diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-11-10 14:54:20 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-11-10 14:54:32 +0100 |
commit | 85d8cf1d3e3706af1807ecf5689fd7e5cf9ada71 (patch) | |
tree | 256cf5c69f2e721498f6bae9a2258b7a90a0f088 /server/sonar-server-benchmarks | |
parent | 4912c5629d98064bdf053ff3a620145668816c04 (diff) | |
download | sonarqube-85d8cf1d3e3706af1807ecf5689fd7e5cf9ada71.tar.gz sonarqube-85d8cf1d3e3706af1807ecf5689fd7e5cf9ada71.zip |
SONAR-6990 Adjust expected duration of file persistence
Duplications are now read from the in-memory repository and no more from the analysis report, so duration is now faster
Diffstat (limited to 'server/sonar-server-benchmarks')
-rw-r--r-- | server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 c10ab0b6688..260d5edaf8f 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 @@ -24,6 +24,7 @@ import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; + import org.apache.commons.io.FileUtils; import org.junit.Rule; import org.junit.Test; @@ -101,7 +102,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, 125000, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); + benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 109000, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); } private File prepareReport() throws IOException { |