You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by vo...@apache.org on 2024/04/22 08:56:51 UTC
(lucene) branch branch_9x updated: Fix TestLucene90FieldInfosFormat.testRandom (#13135)
This is an automated email from the ASF dual-hosted git repository.
voditas pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 112523e628b Fix TestLucene90FieldInfosFormat.testRandom (#13135)
112523e628b is described below
commit 112523e628b247dd1f96e78a8ee7a2550e48dab4
Author: Shubham Chaudhary <36...@users.noreply.github.com>
AuthorDate: Mon Apr 22 14:10:40 2024 +0530
Fix TestLucene90FieldInfosFormat.testRandom (#13135)
---
.../org/apache/lucene/tests/index/BaseFieldInfoFormatTestCase.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseFieldInfoFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseFieldInfoFormatTestCase.java
index 1087eb15c5d..853646f8c17 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseFieldInfoFormatTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseFieldInfoFormatTestCase.java
@@ -278,6 +278,9 @@ public abstract class BaseFieldInfoFormatTestCase extends BaseIndexFileFormatTes
String parentField = random().nextBoolean() ? TestUtil.randomUnicodeString(random()) : null;
+ if (softDeletesField != null && softDeletesField.equals(parentField)) {
+ parentField = null;
+ }
var builder = INDEX_PACKAGE_ACCESS.newFieldInfosBuilder(softDeletesField, parentField);
for (String field : fieldNames) {