wire this test for ramdir too for now

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@988710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-08-24 20:27:47 +00:00
parent 912563e594
commit ba6d2d37dc
1 changed files with 2 additions and 1 deletions

View File

@ -467,6 +467,7 @@ public class TestIndexWriter extends LuceneTestCase {
/*
* Make sure IndexWriter cleans up on hitting a disk
* full exception in addDocument.
* TODO: how to do this on windows with FSDirectory?
*/
public void testAddDocumentOnDiskFull() throws IOException {
@ -478,7 +479,7 @@ public class TestIndexWriter extends LuceneTestCase {
while(true) {
if (VERBOSE)
System.out.println("TEST: cycle: diskFree=" + diskFree);
MockDirectoryWrapper dir = newDirectory(random);
MockDirectoryWrapper dir = new MockDirectoryWrapper(new RAMDirectory());
dir.setMaxSizeInBytes(diskFree);
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(random, TEST_VERSION_CURRENT, new MockAnalyzer()));
MergeScheduler ms = writer.getConfig().getMergeScheduler();