support -Dtests.iter correctly in TestFieldsReader

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1139199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-06-24 08:36:03 +00:00
parent ca68be5360
commit 8d742c45ad
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ public class TestFieldsReader extends LuceneTestCase {
IndexWriter writer = new IndexWriter(dir, conf);
writer.addDocument(testDoc);
writer.close();
}
@Override
public void setUp() throws Exception {
super.setUp();
FaultyIndexInput.doFail = false;
}