try increasing the timeouts for slow machines

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1161097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-08-24 13:44:31 +00:00
parent cf4e150ce1
commit defe907de2
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ public class TestLBHttpSolrServer extends LuceneTestCase {
} }
HttpClient myHttpClient = new HttpClient(new MultiThreadedHttpConnectionManager()); HttpClient myHttpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
myHttpClient.getParams().setParameter("http.connection.timeout", new Integer(100)); myHttpClient.getParams().setParameter("http.connection.timeout", new Integer(250));
myHttpClient.getParams().setParameter("http.socket.timeout", new Integer(100)); myHttpClient.getParams().setParameter("http.socket.timeout", new Integer(250));
LBHttpSolrServer lbHttpSolrServer = new LBHttpSolrServer(myHttpClient, s); LBHttpSolrServer lbHttpSolrServer = new LBHttpSolrServer(myHttpClient, s);
lbHttpSolrServer.setAliveCheckInterval(500); lbHttpSolrServer.setAliveCheckInterval(500);