mirror of https://github.com/apache/lucene.git
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:
parent
bba56f893d
commit
0056057d9a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue