aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-24 10:14:51 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-24 10:14:59 +0200
commit507d10430f0af60a922814ca9df267bb75efa898 (patch)
tree311b835f9718a2bb03417f4d3fc4b49b18c8384b /tests
parent3ebdf9664f4e74ecdc3494464346fbda09c27d64 (diff)
downloadsonarqube-507d10430f0af60a922814ca9df267bb75efa898.tar.gz
sonarqube-507d10430f0af60a922814ca9df267bb75efa898.zip
Fix timeout of server startup perf test
Faster thanks to the move to Java 8
Diffstat (limited to 'tests')
-rw-r--r--tests/perf/src/test/java/org/sonarsource/sonarqube/perf/server/ServerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/server/ServerTest.java b/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/server/ServerTest.java
index 3fb1ce22783..ca2520b0247 100644
--- a/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/server/ServerTest.java
+++ b/tests/perf/src/test/java/org/sonarsource/sonarqube/perf/server/ServerTest.java
@@ -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();