mirror of https://github.com/apache/lucene.git
LUCENE-10094: Fix test bug
This commit is contained in:
parent
1bb52859c8
commit
cc8c4283dd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue