Apache Lucene open-source search software
fix test bug
Michael McCandlessee1bfe16cd64
diff --git a/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java b/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.javaindex 5596d1ee716..4348484c9bf 100644--- a/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java+++ b/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java@@ -27,6 +27,7 @@ import org.apache.lucene.document.Field.Store;import org.apache.lucene.document.FieldType;import org.apache.lucene.document.IntField;import org.apache.lucene.index.BaseStoredFieldsFormatTestCase;+import org.apache.lucene.index.IndexWriter;import org.apache.lucene.index.IndexWriterConfig;import org.apache.lucene.index.RandomIndexWriter;import org.apache.lucene.store.Directory;@@ -52,7 +53,9 @@ public class TestCompressingStoredFieldsFormat extends BaseStoredFieldsFormatTes// disable CFS because this test checks file namesiwConf.setMergePolicy(newLogMergePolicy(false));iwConf.setUseCompoundFile(false);- RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwConf);++ // Cannot use RIW because this test wants CFS to stay off:+ IndexWriter iw = new IndexWriter(dir, iwConf);final Document validDoc = new Document();validDoc.add(new IntField("id", 0, Store.YES));@@ -67,6 +70,8 @@ public class TestCompressingStoredFieldsFormat extends BaseStoredFieldsFormatTes@Overridepublic String stringValue() {+ // TODO: really bad & scary that this causes IW to+ // abort the segment!! We should fix this.return null;}