From 2dc54f0cefc31f20c24dae7f5e8e2dd479ef6229 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 2 Nov 2012 16:43:10 +0000 Subject: [PATCH] TestCompressingStoredFieldsFormat.testBigDocuments: use a FS dir. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1405045 13f79535-47bb-0310-9956-ffa450edef68 --- .../compressing/TestCompressingStoredFieldsFormat.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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.java index 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 { @Nightly public 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); }