aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java')
-rw-r--r--server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java b/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java
index 5ce6cf13a0b..ebf7e106f4b 100644
--- a/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java
+++ b/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java
@@ -19,6 +19,8 @@
*/
package org.sonar.search;
+import java.net.InetAddress;
+import java.util.Properties;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.NoNodeAvailableException;
@@ -34,12 +36,10 @@ import org.junit.rules.TemporaryFolder;
import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.sonar.process.NetworkUtils;
+import org.sonar.process.ProcessEntryPoint;
import org.sonar.process.ProcessProperties;
import org.sonar.process.Props;
-import java.net.InetAddress;
-import java.util.Properties;
-
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
@@ -78,6 +78,7 @@ public class SearchServerTest {
props.set(ProcessProperties.CLUSTER_NAME, CLUSTER_NAME);
props.set(ProcessProperties.CLUSTER_NODE_NAME, "test");
props.set(ProcessProperties.PATH_HOME, temp.newFolder().getAbsolutePath());
+ props.set(ProcessEntryPoint.PROPERTY_SHARED_PATH, temp.newFolder().getAbsolutePath());
searchServer = new SearchServer(props);
searchServer.start();