Commit 062c530
authored
Fix seed-dependent failure in TestForceNoBulkScoringQuery (#16369)
The sanity check added in #16350 assumes that searching the un-wrapped
ThrowsOnBulkScoreQuery always calls ScorerSupplier#bulkScorer. With
newSearcher(reader) the searcher may be an AssertingIndexSearcher,
whose ScorerSupplier sometimes builds the bulk scorer from scorer()
instead of delegating, so the expected AssertionError is never thrown:
gradlew -p lucene/monitor test --tests TestForceNoBulkScoringQuery \
-Dtests.seed=BDD18A3ADD885193
Use a plain IndexSearcher so the dispatch under test is deterministic.1 parent a9eb52b commit 062c530
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
0 commit comments