mirror of https://github.com/apache/lucene.git
fix tests to use newDir
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1083153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67fecffee5
commit
3dcbc2cc16
|
@ -688,7 +688,7 @@ public class TestIndexWriter extends LuceneTestCase {
|
|||
// Make sure it's OK to change RAM buffer size and
|
||||
// maxBufferedDocs in a write session
|
||||
public void testChangingRAMBuffer() throws IOException {
|
||||
RAMDirectory dir = new RAMDirectory();
|
||||
Directory dir = newDirectory();
|
||||
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()));
|
||||
writer.getConfig().setMaxBufferedDocs(10);
|
||||
writer.getConfig().setRAMBufferSizeMB(IndexWriterConfig.DISABLE_AUTO_FLUSH);
|
||||
|
@ -742,7 +742,7 @@ public class TestIndexWriter extends LuceneTestCase {
|
|||
}
|
||||
|
||||
public void testChangingRAMBuffer2() throws IOException {
|
||||
RAMDirectory dir = new RAMDirectory();
|
||||
Directory dir = newDirectory();
|
||||
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()));
|
||||
writer.getConfig().setMaxBufferedDocs(10);
|
||||
writer.getConfig().setMaxBufferedDeleteTerms(10);
|
||||
|
|
Loading…
Reference in New Issue