use FSDirectory to avoid OOME

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1594182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-05-13 10:26:44 +00:00
parent 23760573f9
commit 879935cceb
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ public class TestIndexWriterThreadsToSegments extends LuceneTestCase {
}
public void testDocsStuckInRAMForever() throws Exception {
Directory dir = newDirectory();
Directory dir = newFSDirectory(createTempDir());
IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
iwc.setRAMBufferSizeMB(.2);
Codec codec = Codec.forName("Lucene46");