fix test bug: this test expects single segment index

This commit is contained in:
Mike McCandless 2016-03-14 10:42:03 -04:00
parent 826ff66716
commit 7f6fb8dae9
1 changed files with 1 additions and 0 deletions

View File

@ -435,6 +435,7 @@ public class TestPayloadSpans extends LuceneTestCase {
writer.addDocument(doc);
}
writer.forceMerge(1);
closeIndexReader = writer.getReader();
writer.close();