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:
Michael McCandless 2010-12-12 19:17:20 +00:00
parent bc72163b4c
commit 0db62822e0
1 changed files with 4 additions and 1 deletions

View File

@ -926,7 +926,7 @@ public class TestFSTs extends LuceneTestCase {
}
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 File tempDir = _TestUtil.getTempDir("fstlines");
final MockDirectoryWrapper dir = new MockDirectoryWrapper(random, FSDirectory.open(tempDir));
@ -972,6 +972,9 @@ public class TestFSTs extends LuceneTestCase {
}
builder.add(term, outputs.get(output));
ord++;
if (ord % 100000 == 0 && LuceneTestCase.TEST_NIGHTLY) {
System.out.println(ord + " terms...");
}
}
final FST<Long> fst = builder.finish();
if (VERBOSE) {