From 3604710facaacc6feb9c8a0a4f236dce7aa61196 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Mon, 11 Aug 2014 10:20:51 +0200 Subject: [PATCH] No need to wait for ES in non-blocking mode (start returns when node is started) --- .../java/org/sonar/server/tester/ServerTester.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java b/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java index 74faa976d6b..121261051bd 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java +++ b/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java @@ -98,16 +98,6 @@ public class ServerTester extends ExternalResource { Properties properties = new Properties(); properties.putAll(initialProps); - try { - searchServer.start(); - System.out.println("searchServer = " + searchServer.isReady()); - while (!searchServer.isReady()) { - Thread.sleep(100); - } - } catch (Exception e) { - e.printStackTrace(); - } - properties.setProperty(IndexProperties.CLUSTER_NAME, clusterName); properties.setProperty(IndexProperties.NODE_PORT, clusterPort.toString()); properties.setProperty(MonitoredProcess.NAME_PROPERTY, "ES"); @@ -121,6 +111,7 @@ public class ServerTester extends ExternalResource { } } + searchServer.start(); platform.init(properties); platform.addComponents(components); platform.doStart(); -- 2.39.5