mirror of https://github.com/apache/lucene.git
LUCENE-5708: fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1598503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4dd09dfd07
commit
47a1a8be4a
|
@ -138,6 +138,7 @@ public class TestBlockPostingsFormat3 extends LuceneTestCase {
|
|||
verify(dir);
|
||||
TestUtil.checkIndex(dir); // for some extra coverage, checkIndex before we forceMerge
|
||||
iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer);
|
||||
iwc.setCodec(TestUtil.alwaysPostingsFormat(new Lucene41PostingsFormat()));
|
||||
iwc.setOpenMode(OpenMode.APPEND);
|
||||
IndexWriter iw2 = new IndexWriter(dir, iwc);
|
||||
iw2.forceMerge(1);
|
||||
|
|
Loading…
Reference in New Issue