]> source.dussan.org Git - sonarqube.git/commitdiff
Activate assertion on perf test of file sources persistence
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 23 Apr 2015 07:38:13 +0000 (09:38 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 23 Apr 2015 07:38:23 +0000 (09:38 +0200)
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java

index d5010a3cb772f3a8ff9d1f8254c47a8f0944e435..eb871e7be7c5cd8d2fa3f530c921ea1576bab1dd 100644 (file)
@@ -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 {