LUCENE-6117: this test secretly relies on testPoint too

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1646288 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-12-17 16:27:11 +00:00
parent 38faeb9227
commit a6233f1341
1 changed files with 2 additions and 0 deletions

View File

@ -2197,6 +2197,8 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
IndexWriterConfig iwc = new IndexWriterConfig(null);
iwc.setInfoStream(evilInfoStream);
IndexWriter iw = new IndexWriter(dir, iwc);
// TODO: cutover to RandomIndexWriter.mockIndexWriter?
iw.enableTestPoints = true;
Document doc = new Document();
for (int i = 0; i < 10; i++) {
iw.addDocument(doc);