mirror of https://github.com/apache/lucene.git
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:
parent
912563e594
commit
ba6d2d37dc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue