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:
Robert Muir 2011-12-07 11:57:00 +00:00
parent fe6d400765
commit 028ebe812f
1 changed files with 3 additions and 1 deletions

View File

@ -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();