TestCompressingStoredFieldsFormat.testBigDocuments: use a FS dir.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1405045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2012-11-02 16:43:10 +00:00
parent 52c7cf5870
commit 2dc54f0cef
1 changed files with 7 additions and 1 deletions

View File

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