er, wrong test

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

View File

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

View File

@ -225,7 +225,7 @@ public class TestTieredMergePolicy extends BaseMergePolicyTestCase {
iwc.setMaxBufferedDocs(100); iwc.setMaxBufferedDocs(100);
iwc.setRAMBufferSizeMB(-1); iwc.setRAMBufferSizeMB(-1);
IndexWriter w = new IndexWriter(dir, iwc); IndexWriter w = new IndexWriter(dir, iwc);
for(int i=0;i<100000;i++) { for(int i=0;i<15000*RANDOM_MULTIPLIER;i++) {
Document doc = new Document(); Document doc = new Document();
doc.add(newTextField("id", random().nextLong() + "" + random().nextLong(), Field.Store.YES)); doc.add(newTextField("id", random().nextLong() + "" + random().nextLong(), Field.Store.YES));
w.addDocument(doc); w.addDocument(doc);