aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-29 09:49:08 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-29 09:50:47 +0200
commit971c84d19547548ca70251d6131018ed0d083179 (patch)
tree1d2876c19a2a4210296657b8b946d3925baa1f1f /tests
parent657bb8e40bd03fcea1b214f99850bafd8f9bc455 (diff)
downloadsonarqube-971c84d19547548ca70251d6131018ed0d083179.tar.gz
sonarqube-971c84d19547548ca70251d6131018ed0d083179.zip
SONAR-7844 fix ComputationTest using dropped ce_activity.log
Diffstat (limited to 'tests')
-rw-r--r--tests/perf/src/main/java/org/sonarsource/sonarqube/perf/ServerLogs.java2
1 files changed, 1 insertions, 1 deletions
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<String> logsLines = FileUtils.readLines(report, Charsets.UTF_8);
return extractComputationTotalTime(logsLines);
}