lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject lucene-solr:branch_5_5: LUCENE-7345: fix test bug so jenkins isn't on fire anymore
Date Sun, 19 Jun 2016 15:16:57 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_5_5 be5eb65a8 -> fe03fb721


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/fe03fb72
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/fe03fb72
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/fe03fb72

Branch: refs/heads/branch_5_5
Commit: fe03fb721352a5cfad0878296f8e719a794600fe
Parents: be5eb65
Author: Robert Muir <rmuir@apache.org>
Authored: Sun Jun 19 11:11:24 2016 -0400
Committer: Robert Muir <rmuir@apache.org>
Committed: Sun Jun 19 11:16:18 2016 -0400

----------------------------------------------------------------------
 lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/fe03fb72/lucene/core/src/test/org/apache/lucene/search/TestBoolean2.java
----------------------------------------------------------------------
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 8ddadc5..e93665b 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()));


Mime
View raw message