mirror of https://github.com/apache/lucene.git
LUCENE-3623: don't use SlowMultiReaderWrapper for SORTED_BYTES tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3622@1211398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe6d400765
commit
028ebe812f
|
@ -103,7 +103,9 @@ public class TestTypePromotion extends LuceneTestCase {
|
|||
} else {
|
||||
// do a real merge here
|
||||
IndexReader open = IndexReader.open(dir_2);
|
||||
writer.addIndexes(random.nextBoolean() ? new SlowMultiReaderWrapper(open) : open);
|
||||
// we cannot use SlowMR for sorted bytes, because it returns a null sortedsource
|
||||
boolean useSlowMRWrapper = types != SORTED_BYTES && random.nextBoolean();
|
||||
writer.addIndexes(useSlowMRWrapper ? new SlowMultiReaderWrapper(open) : open);
|
||||
open.close();
|
||||
}
|
||||
dir_2.close();
|
||||
|
|
Loading…
Reference in New Issue