LUCENE-7345: fix test bug so jenkins isn't on fire anymore

This commit is contained in:
Robert Muir 2016-06-19 11:11:24 -04:00
parent a5c43b415f
commit 5193a05385
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ package org.apache.lucene.search;
import java.util.Arrays;
import java.util.Collections;
import java.util.Random;
import org.apache.lucene.analysis.MockAnalyzer;
@ -106,6 +107,7 @@ public class TestBoolean2 extends LuceneTestCase {
for (String fileName : directory.listAll()) {
singleSegmentDirectory.copyFrom(directory, fileName, fileName, IOContext.DEFAULT);
singleSegmentDirectory.sync(Collections.singleton(fileName));
}
IndexWriterConfig iwc = newIndexWriterConfig(new MockAnalyzer(random()));