Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

test - try to up check interval... it may not have been completing fast enough

Yonik Seeley7aec4a875418
diff --git a/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java b/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
index dac3b174755..02ba8dff83a 100644
--- a/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
+++ b/src/test/org/apache/solr/client/solrj/TestLBHttpSolrServer.java
@@ -83,7 +83,7 @@ public class TestLBHttpSolrServer extends TestCase {
s[i] = solr[i].getUrl();
}
LBHttpSolrServer lbHttpSolrServer = new LBHttpSolrServer(httpClient, s);
- lbHttpSolrServer.setAliveCheckInterval(1000);
+ lbHttpSolrServer.setAliveCheckInterval(500);
SolrQuery solrQuery = new SolrQuery("*:*");
Set<String> names = new HashSet<String>();
QueryResponse resp = null;
@@ -121,7 +121,7 @@ public class TestLBHttpSolrServer extends TestCase {
public void testTwoServers() throws Exception {
LBHttpSolrServer lbHttpSolrServer = new LBHttpSolrServer(httpClient, solr[0].getUrl(), solr[1].getUrl());
- lbHttpSolrServer.setAliveCheckInterval(1000);
+ lbHttpSolrServer.setAliveCheckInterval(500);
SolrQuery solrQuery = new SolrQuery("*:*");
Set<String> names = new HashSet<String>();
QueryResponse resp = null;