lengthen connect timeout in test added for SOLR-127

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@630756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2008-02-25 08:03:05 +00:00
parent 3813608000
commit d9607c5f78
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public abstract class CacheHeaderTestBase extends SolrExampleTestBase {
// setup the server... // setup the server...
String url = "http://localhost:" + port + context; String url = "http://localhost:" + port + context;
CommonsHttpSolrServer s = new CommonsHttpSolrServer(url); CommonsHttpSolrServer s = new CommonsHttpSolrServer(url);
s.setConnectionTimeout(5); s.setConnectionTimeout(100); // 1/10th sec
s.setDefaultMaxConnectionsPerHost(100); s.setDefaultMaxConnectionsPerHost(100);
s.setMaxTotalConnections(100); s.setMaxTotalConnections(100);
return s; return s;