You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2023/02/14 07:31:38 UTC

[solr] branch main updated: Test failures addressed (#1014)

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

noble pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 71e875d022c Test failures addressed (#1014)
71e875d022c is described below

commit 71e875d022c32e62556584f58c14fb77340d05cd
Author: Noble Paul <no...@gmail.com>
AuthorDate: Tue Feb 14 18:30:29 2023 +1100

    Test failures addressed (#1014)
---
 .../src/test/org/apache/solr/schema/TestCloudManagedSchema.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/solr/core/src/test/org/apache/solr/schema/TestCloudManagedSchema.java b/solr/core/src/test/org/apache/solr/schema/TestCloudManagedSchema.java
index c34b38ef5e7..5c0f4f49d22 100644
--- a/solr/core/src/test/org/apache/solr/schema/TestCloudManagedSchema.java
+++ b/solr/core/src/test/org/apache/solr/schema/TestCloudManagedSchema.java
@@ -18,6 +18,7 @@ package org.apache.solr.schema;
 
 import java.nio.charset.StandardCharsets;
 import java.util.List;
+import java.util.concurrent.TimeUnit;
 import org.apache.solr.client.solrj.SolrClient;
 import org.apache.solr.client.solrj.impl.HttpSolrClient;
 import org.apache.solr.client.solrj.request.QueryRequest;
@@ -70,7 +71,10 @@ public class TestCloudManagedSchema extends AbstractFullDistribZkTestBase {
     }
 
     try (SolrZkClient zkClient =
-        new SolrZkClient.Builder().withUrl(zkServer.getZkHost() + ":30000)").build()) {
+        new SolrZkClient.Builder()
+            .withUrl(zkServer.getZkHost())
+            .withTimeout(30000, TimeUnit.MILLISECONDS)
+            .build()) {
       // Make sure "DO NOT EDIT" is in the content of the managed schema
       String fileContent =
           getFileContentFromZooKeeper(zkClient, "/solr/configs/conf1/managed-schema.xml");