Fix TestLucene90FieldInfosFormat.testRandom (#13135)

This commit is contained in:
Shubham Chaudhary 2024-04-22 14:10:40 +05:30 committed by GitHub
parent 3024e66e4a
commit d57267a0e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ public abstract class BaseFieldInfoFormatTestCase extends BaseIndexFileFormatTes
String parentField = random().nextBoolean() ? TestUtil.randomUnicodeString(random()) : null; String parentField = random().nextBoolean() ? TestUtil.randomUnicodeString(random()) : null;
if (softDeletesField != null && softDeletesField.equals(parentField)) {
parentField = null;
}
var builder = INDEX_PACKAGE_ACCESS.newFieldInfosBuilder(softDeletesField, parentField); var builder = INDEX_PACKAGE_ACCESS.newFieldInfosBuilder(softDeletesField, parentField);
for (String field : fieldNames) { for (String field : fieldNames) {