This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new e72c4bf368d SOLR-16589: Fix test to use reasonable unicode in xml
e72c4bf368d is described below
commit e72c4bf368de65f0af5d7c2add71bb2b180a69b0
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());