mirror of https://github.com/apache/lucene.git
tests: add timeouts for http client
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1441943 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23edb27440
commit
3105772ed7
|
@ -495,6 +495,8 @@ public class BasicDistributedZkTest extends AbstractFullDistribZkTestBase {
|
||||||
DirectUpdateHandler2.commitOnClose = false;
|
DirectUpdateHandler2.commitOnClose = false;
|
||||||
|
|
||||||
HttpSolrServer addClient = new HttpSolrServer(url3 + "/unloadcollection3");
|
HttpSolrServer addClient = new HttpSolrServer(url3 + "/unloadcollection3");
|
||||||
|
addClient.setConnectionTimeout(15000);
|
||||||
|
addClient.setSoTimeout(30000);
|
||||||
// add a few docs
|
// add a few docs
|
||||||
for (int x = 20; x < 100; x++) {
|
for (int x = 20; x < 100; x++) {
|
||||||
SolrInputDocument doc1 = getDoc(id, x, i1, -600, tlong, 600, t1,
|
SolrInputDocument doc1 = getDoc(id, x, i1, -600, tlong, 600, t1,
|
||||||
|
|
Loading…
Reference in New Issue