mirror of https://github.com/apache/lucene.git
Fix rare test failures of TestIndexSorting.
Sometimes the final merge might not require sorting depending on the merge policy configuration.
This commit is contained in:
parent
30a7c52e6c
commit
0364402b30
|
@ -188,6 +188,7 @@ public class TestIndexSorting extends LuceneTestCase {
|
|||
assertTrue(codec.numCalls > 0);
|
||||
|
||||
// merge sort is needed
|
||||
w.deleteAll();
|
||||
codec.numCalls = 0;
|
||||
codec.needsIndexSort = true;
|
||||
for (int i = 10; i >= 0; i--) {
|
||||
|
|
Loading…
Reference in New Issue