Skip to content

Commit

Permalink
LUCENE-9935: Fix testRandomStoredFieldsWithIndexSort
Browse files Browse the repository at this point in the history
Skip verifying if the list of live ids is empty
  • Loading branch information
dnhatn committed May 16, 2021
1 parent eaaf13a commit 406aef8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,9 @@ public void testRandomStoredFieldsWithIndexSort() throws Exception {
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);
Expand Down

0 comments on commit 406aef8

Please sign in to comment.