mirror of https://github.com/apache/lucene.git
LUCENE-7574: Fix more index sorting test failures.
This commit is contained in:
parent
9b4b120aba
commit
d0b5d41f5c
|
@ -103,7 +103,10 @@ public class TestIndexSorting extends LuceneTestCase {
|
|||
return new PointsWriter() {
|
||||
@Override
|
||||
public void merge(MergeState mergeState) throws IOException {
|
||||
assertEquals(needsIndexSort, mergeState.needsIndexSort);
|
||||
// For single segment merge we cannot infer if the segment is already sorted or not.
|
||||
if (mergeState.docMaps.length > 1) {
|
||||
assertEquals(needsIndexSort, mergeState.needsIndexSort);
|
||||
}
|
||||
++ numCalls;
|
||||
writer.merge(mergeState);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue