mirror of https://github.com/apache/lucene.git
drop run time to [hopefully] avoid OOME
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc72163b4c
commit
0db62822e0
|
@ -926,7 +926,7 @@ public class TestFSTs extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
final LineFileDocs docs = new LineFileDocs(false);
|
final LineFileDocs docs = new LineFileDocs(false);
|
||||||
final int RUN_TIME_SEC = LuceneTestCase.TEST_NIGHTLY ? 300 : 1;
|
final int RUN_TIME_SEC = LuceneTestCase.TEST_NIGHTLY ? 100 : 1;
|
||||||
final IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()).setMaxBufferedDocs(-1).setRAMBufferSizeMB(64);
|
final IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer()).setMaxBufferedDocs(-1).setRAMBufferSizeMB(64);
|
||||||
final File tempDir = _TestUtil.getTempDir("fstlines");
|
final File tempDir = _TestUtil.getTempDir("fstlines");
|
||||||
final MockDirectoryWrapper dir = new MockDirectoryWrapper(random, FSDirectory.open(tempDir));
|
final MockDirectoryWrapper dir = new MockDirectoryWrapper(random, FSDirectory.open(tempDir));
|
||||||
|
@ -972,6 +972,9 @@ public class TestFSTs extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
builder.add(term, outputs.get(output));
|
builder.add(term, outputs.get(output));
|
||||||
ord++;
|
ord++;
|
||||||
|
if (ord % 100000 == 0 && LuceneTestCase.TEST_NIGHTLY) {
|
||||||
|
System.out.println(ord + " terms...");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
final FST<Long> fst = builder.finish();
|
final FST<Long> fst = builder.finish();
|
||||||
if (VERBOSE) {
|
if (VERBOSE) {
|
||||||
|
|
Loading…
Reference in New Issue