From 2bdf27e7784ee582c8d2c1dc2d858ef2100f53e6 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 6 Nov 2014 14:06:34 +0100 Subject: Increase stability of MonitorTest on slow boxes --- .../src/test/java/org/sonar/process/monitor/MonitorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/sonar-process-monitor/src') diff --git a/server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/MonitorTest.java b/server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/MonitorTest.java index a52459ead11..7734843c3d8 100644 --- a/server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/MonitorTest.java +++ b/server/sonar-process-monitor/src/test/java/org/sonar/process/monitor/MonitorTest.java @@ -270,7 +270,7 @@ public class MonitorTest { boolean isReady() { try { HttpRequest httpRequest = HttpRequest.get("http://localhost:" + httpPort + "/ping") - .readTimeout(500).connectTimeout(500); + .readTimeout(2000).connectTimeout(2000); return httpRequest.ok() && httpRequest.body().equals("ping"); } catch (HttpRequest.HttpRequestException e) { return false; -- cgit v1.2.3