sometimes wrap with other crazy readers, not just slow

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1291756 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-02-21 13:03:49 +00:00
parent ef409e8018
commit c3ae7604ce
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ public class TestTypePromotion extends LuceneTestCase {
} else {
// do a real merge here
IndexReader open = IndexReader.open(dir_2);
writer.addIndexes(SlowCompositeReaderWrapper.wrap(open));
// TODO: wrap in a better way
writer.addIndexes(newSearcher(open).getIndexReader());
open.close();
}
dir_2.close();