diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-04-23 09:38:13 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-04-23 09:38:23 +0200 |
commit | da53f6e1fbd53e48373df57543f0585ebce580db (patch) | |
tree | 81dd1871dbfdd2183f7e16944318575a4e3f08e8 /server | |
parent | b7e670b9b88151d82e59169bed91c0f19869a917 (diff) | |
download | sonarqube-da53f6e1fbd53e48373df57543f0585ebce580db.tar.gz sonarqube-da53f6e1fbd53e48373df57543f0585ebce580db.zip |
Activate assertion on perf test of file sources persistence
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java | 3 |
1 files changed, 1 insertions, 2 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 d5010a3cb77..eb871e7be7c 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 @@ -85,8 +85,7 @@ public class PersistFileSourcesStepTest { assertThat(dbTester.countRowsOfTable("file_sources")).isEqualTo(NUMBER_OF_FILES); LOGGER.info(String.format("File sources has been persisted in %d ms", duration)); - // TODO to be enabled after some execution has been done to set a valuable duration - //benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 100000, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); + benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 105000, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); } private File prepareReport() throws IOException { |