mirror of https://github.com/apache/lucene.git
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:
parent
879935cceb
commit
b328f13b30
|
@ -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");
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue