From b328f13b30509e65111aeefc4896d6432ec1eef2 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 13 May 2014 10:29:35 +0000 Subject: [PATCH] er, wrong test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1594184 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/index/TestIndexWriterThreadsToSegments.java | 2 +- .../src/test/org/apache/lucene/index/TestTieredMergePolicy.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java index 6e18635b660..72102e39304 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java @@ -273,7 +273,7 @@ public class TestIndexWriterThreadsToSegments extends LuceneTestCase { } public void testDocsStuckInRAMForever() throws Exception { - Directory dir = newFSDirectory(createTempDir()); + Directory dir = newDirectory(); IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())); iwc.setRAMBufferSizeMB(.2); Codec codec = Codec.forName("Lucene46"); diff --git a/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java index e4b5060e4a8..d24fd6fc9c0 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java @@ -225,7 +225,7 @@ public class TestTieredMergePolicy extends BaseMergePolicyTestCase { iwc.setMaxBufferedDocs(100); iwc.setRAMBufferSizeMB(-1); 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(); doc.add(newTextField("id", random().nextLong() + "" + random().nextLong(), Field.Store.YES)); w.addDocument(doc);