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:
Michael McCandless 2014-05-30 08:58:33 +00:00
parent 4dd09dfd07
commit 47a1a8be4a
1 changed files with 1 additions and 0 deletions

View File

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