Apache Lucene open-source search software
TestCompressingStoredFieldsFormat.testBigDocuments: use a FS dir.
Adrien Grand2dc54f0cefc3
diff --git a/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java b/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.javaindex 60d49671420..6459577d4d2 100644--- a/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java+++ b/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java@@ -295,7 +295,13 @@ public class TestCompressingStoredFieldsFormat extends LuceneTestCase {@Nightlypublic void testBigDocuments() throws IOException {- // much bigger than the chunk size+ // "big" as "much bigger than the chunk size"+ // for this test we force a FS dir+ iw.close();+ dir.close();+ dir = newFSDirectory(_TestUtil.getTempDir(getClass().getSimpleName()));+ iw = new RandomIndexWriter(random(), dir, iwConf);+if (dir instanceof MockDirectoryWrapper) {((MockDirectoryWrapper) dir).setThrottling(Throttling.NEVER);}