diff --git a/solr/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java b/solr/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java index db269b69ea6..40ea6413c27 100644 --- a/solr/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java +++ b/solr/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java @@ -45,10 +45,12 @@ import java.util.Set; */ public class TestLBHttpSolrServer extends LuceneTestCase { SolrInstance[] solr = new SolrInstance[3]; - HttpClient httpClient = new HttpClient(); + HttpClient httpClient; public void setUp() throws Exception { super.setUp(); + httpClient = new HttpClient(); + httpClient.getParams().setParameter("http.connection.timeout", new Integer(1000)); for (int i = 0; i < solr.length; i++) { solr[i] = new SolrInstance("solr" + i, 0); solr[i].setUp();