From 5193a05385280548bb58fba89ad273c930ca8612 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sun, 19 Jun 2016 11:11:24 -0400 Subject: [PATCH] LUCENE-7345: fix test bug so jenkins isn't on fire anymore --- lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java b/lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java index 8123addab84..075e62d59c8 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java @@ -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()));