LUCENE-10094: Fix test bug

This commit is contained in:
Alan Woodward 2021-09-10 16:29:48 +01:00
parent 1bb52859c8
commit cc8c4283dd
1 changed files with 1 additions and 1 deletions

View File

@ -1877,7 +1877,7 @@ public class TestLRUQueryCache extends LuceneTestCase {
searcher.count(q); // add to cache
Weight weight = searcher.createWeight(searcher.rewrite(q), ScoreMode.COMPLETE_NO_SCORES, 1);
assertNotEquals(-1, weight.count(reader.leaves().get(0)));
assertNotEquals(-1, weight.count(searcher.reader.leaves().get(0)));
reader.close();
w.close();