SOLR-2002: explicitly set connection-timeout for this test, otherwise the os could have a verrrrry long default

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1021971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-10-13 01:28:09 +00:00
parent bba56f893d
commit 0056057d9a
1 changed files with 3 additions and 1 deletions

View File

@ -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();