mirror of https://github.com/apache/lucene.git
Fix TestLucene90FieldInfosFormat.testRandom (#13135)
This commit is contained in:
parent
3024e66e4a
commit
d57267a0e6
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue