ensure a single segment in new test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1673596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-04-15 00:55:47 +00:00
parent a5877d42b0
commit fd70dadf80
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ public class TestMultiPhraseEnum extends LuceneTestCase {
doc.add(new TextField("field", "bar", Field.Store.NO));
writer.addDocument(doc);
writer.forceMerge(1);
DirectoryReader ir = DirectoryReader.open(writer, true);
writer.close();