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

krisden 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 f00c157ff4b SOLR-16589: Fix test to use reasonable unicode in xml
f00c157ff4b is described below

commit f00c157ff4b7249a8503154cf11c125cae8c75bc
Author: Kevin Risden <[email protected]>
AuthorDate: Thu Dec 15 18:08:38 2022 -0500

    SOLR-16589: Fix test to use reasonable unicode in xml
---
 solr/core/src/test/org/apache/solr/search/LargeFieldTest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/solr/core/src/test/org/apache/solr/search/LargeFieldTest.java 
b/solr/core/src/test/org/apache/solr/search/LargeFieldTest.java
index 5045a3561bd..46cd20e2d1a 100644
--- a/solr/core/src/test/org/apache/solr/search/LargeFieldTest.java
+++ b/solr/core/src/test/org/apache/solr/search/LargeFieldTest.java
@@ -23,7 +23,6 @@ import java.util.Objects;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.index.IndexableField;
 import org.apache.lucene.misc.document.LazyDocument;
-import org.apache.lucene.tests.util.TestUtil;
 import org.apache.solr.SolrTestCaseJ4;
 import org.apache.solr.schema.IndexSchema;
 import org.junit.AfterClass;
@@ -85,7 +84,7 @@ public class LargeFieldTest extends SolrTestCaseJ4 {
   @Test
   public void test() throws Exception {
     // add just one document (docid 0)
-    String bigFieldValue = TestUtil.randomUnicodeString(random());
+    String bigFieldValue = randomXmlUsableUnicodeString();
     assertU(adoc(ID_FLD, "101", LAZY_FIELD, "lzy", BIG_FIELD, bigFieldValue));
     assertU(commit());
 

Reply via email to