Skip to content

Apache Lucene open-source search software

SOLR-3854: Boost test timeouts - SSL can be slower.

Mark Robert Miller37fc18ef9f89
diff --git a/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java b/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
index 3c5fcbc16eb..7f9d8cbddb4 100644
--- a/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudDistribCmdsTest.java
@@ -438,7 +438,7 @@ public class FullSolrCloudDistribCmdsTest extends AbstractFullDistribZkTestBase
long beforeCount = results.getResults().getNumFound();
int cnt = TEST_NIGHTLY ? 2933 : 313;
try {
- suss.setConnectionTimeout(30000);
+ suss.setConnectionTimeout(120000);
for (int i = 0; i < cnt; i++) {
index_specific(suss, id, docId++, "text_t", "some text so that it not's negligent work to parse this doc, even though it's still a pretty short doc");
}
diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
index ed9ead0d8d4..adece36c91d 100644
--- a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
+++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
@@ -121,7 +121,7 @@ import com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule;
})
public abstract class SolrTestCaseJ4 extends LuceneTestCase {
private static String coreName = ConfigSolrXmlOld.DEFAULT_DEFAULT_CORE_NAME;
- public static int DEFAULT_CONNECTION_TIMEOUT = 30000; // default socket connection timeout in ms
+ public static int DEFAULT_CONNECTION_TIMEOUT = 45000; // default socket connection timeout in ms
protected static volatile SSLConfig sslConfig = new SSLConfig();