mirror of https://github.com/apache/lucene.git
LUCENE-9935: Fix testRandomStoredFieldsWithIndexSort
Skip verifying if the list of live ids is empty
This commit is contained in:
parent
eaaf13aa86
commit
406aef8a4b
|
@ -899,6 +899,9 @@ public abstract class BaseStoredFieldsFormatTestCase extends BaseIndexFileFormat
|
|||
List<String> addedIds = new ArrayList<>();
|
||||
Runnable verifyStoreFields =
|
||||
() -> {
|
||||
if (addedIds.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
try (DirectoryReader reader = maybeWrapWithMergingReader(iw.getReader())) {
|
||||
IndexSearcher searcher = new IndexSearcher(reader);
|
||||
int iters = TestUtil.nextInt(random(), 1, 10);
|
||||
|
|
Loading…
Reference in New Issue