From: Sébastien Lesaint Date: Mon, 29 Aug 2016 07:49:08 +0000 (+0200) Subject: SONAR-7844 fix ComputationTest using dropped ce_activity.log X-Git-Tag: 6.1-RC1~275 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1177%2Fhead;p=sonarqube.git SONAR-7844 fix ComputationTest using dropped ce_activity.log --- diff --git a/tests/perf/src/main/java/org/sonarsource/sonarqube/perf/ServerLogs.java b/tests/perf/src/main/java/org/sonarsource/sonarqube/perf/ServerLogs.java index 711ee1a59c6..9bacd727c2f 100644 --- a/tests/perf/src/main/java/org/sonarsource/sonarqube/perf/ServerLogs.java +++ b/tests/perf/src/main/java/org/sonarsource/sonarqube/perf/ServerLogs.java @@ -65,7 +65,7 @@ public class ServerLogs { * 2015.09.29 16:57:45 INFO ce[o.s.s.c.q.CeWorkerRunnableImpl] Executed task | project=com.github.kevinsawicki:http-request-parent | id=AVAZm9oHIXrp54OmOeQe | time=2283ms */ public static Long extractComputationTotalTime(Orchestrator orchestrator) throws IOException { - File report = new File(orchestrator.getServer().getLogs().getParent(), "ce_activity.log"); + File report = orchestrator.getServer().getLogs(); List logsLines = FileUtils.readLines(report, Charsets.UTF_8); return extractComputationTotalTime(logsLines); }