You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/09/01 18:54:23 UTC

[lucene-solr] 09/11: @675 Try to harden test around socket timeout.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 78634ab2c53337cfdc6de0a723cb6e6846437ade
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Tue Sep 1 13:13:41 2020 -0500

    @675 Try to harden test around socket timeout.
---
 .../org/apache/solr/client/solrj/io/stream/StreamDecoratorTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamDecoratorTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamDecoratorTest.java
index d9e4bf1..4242c94 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamDecoratorTest.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamDecoratorTest.java
@@ -82,7 +82,8 @@ public class StreamDecoratorTest extends SolrCloudTestCase {
 
   @BeforeClass
   public static void setupCluster() throws Exception {
-    configureCluster(4)
+    System.setProperty("solr.http2solrclient.default.idletimeout", "30000");
+    configureCluster(TEST_NIGHTLY ? 4 : 2)
         .addConfig("conf", getFile("solrj").toPath().resolve("solr").resolve("configsets").resolve("streaming").resolve("conf"))
         .addConfig("ml", getFile("solrj").toPath().resolve("solr").resolve("configsets").resolve("ml").resolve("conf"))
         .configure();