Apache Lucene open-source search software
LUCENE-5708: fix test bug
Michael McCandless47a1a8be4add
diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene41/TestBlockPostingsFormat3.java b/lucene/core/src/test/org/apache/lucene/codecs/lucene41/TestBlockPostingsFormat3.javaindex 69770a11428..26c2b06f860 100644--- a/lucene/core/src/test/org/apache/lucene/codecs/lucene41/TestBlockPostingsFormat3.java+++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene41/TestBlockPostingsFormat3.java@@ -138,6 +138,7 @@ public class TestBlockPostingsFormat3 extends LuceneTestCase {verify(dir);TestUtil.checkIndex(dir); // for some extra coverage, checkIndex before we forceMergeiwc = newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer);+ iwc.setCodec(TestUtil.alwaysPostingsFormat(new Lucene41PostingsFormat()));iwc.setOpenMode(OpenMode.APPEND);IndexWriter iw2 = new IndexWriter(dir, iwc);iw2.forceMerge(1);