]> source.dussan.org Git - sonarqube.git/commitdiff
Fix timeout of server startup perf test
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 24 May 2016 08:14:51 +0000 (10:14 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 24 May 2016 08:14:59 +0000 (10:14 +0200)
Faster thanks to the move to Java 8

tests/perf/src/test/java/org/sonarsource/sonarqube/perf/server/ServerTest.java

index 3fb1ce227837e830b8f7ea3a46a2628784be9206..ca2520b024713b4148bb0431de060c5ef6a3af0e 100644 (file)
@@ -58,7 +58,7 @@ public class ServerTest extends PerfTestCase {
       // compare dates of first and last log
       long firstLogDate = ServerLogs.extractFirstDate(readLogLines(orchestrator)).getTime();
       long startedAtDate = extractStartedAtDate(orchestrator);
-      assertDurationAround(startedAtDate - firstLogDate, 45000);
+      assertDurationAround(startedAtDate - firstLogDate, 38_000);
 
       ServerLogs.clear(orchestrator);
       orchestrator.stop();
@@ -66,7 +66,7 @@ public class ServerTest extends PerfTestCase {
       List<String> lines = readLogLines(orchestrator);
       long firstStopLogDate = ServerLogs.extractFirstDate(lines).getTime();
       long stopDate = extractStopDate(lines);
-      assertDurationLessThan(stopDate - firstStopLogDate, 10000);
+      assertDurationLessThan(stopDate - firstStopLogDate, 10_000);
 
     } finally {
       orchestrator.stop();