Apache Solr open-source search software
cut test over to newFSDirectory to hopefully stop OOMs
Robert Muir62312f08e81a
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java b/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.javaindex 672829c55f9..2c74eca7f4d 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java@@ -869,7 +869,7 @@ public class TestPostingsFormat extends LuceneTestCase {}public void test() throws Exception {- Directory dir = newDirectory();+ Directory dir = newFSDirectory(_TestUtil.getTempDir("testPostingsFormat"));boolean indexPayloads = random().nextBoolean();// TODO test thread safety of buildIndex too