mirror of https://github.com/apache/lucene.git
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:
parent
ef409e8018
commit
c3ae7604ce
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue