You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ji...@apache.org on 2017/02/07 13:05:24 UTC

lucene-solr:branch_6x: LUCENE-7568: Fix test that should never create segments with a single document.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 5386116e9 -> 568f130c5


LUCENE-7568: Fix test that should never create segments with a single document.


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

Branch: refs/heads/branch_6x
Commit: 568f130c501c9c04a40a27e7952699490f155759
Parents: 5386116
Author: Jim Ferenczi <ji...@elastic.co>
Authored: Tue Feb 7 14:04:11 2017 +0100
Committer: Jim Ferenczi <ji...@elastic.co>
Committed: Tue Feb 7 14:05:11 2017 +0100

----------------------------------------------------------------------
 .../core/src/test/org/apache/lucene/index/TestIndexSorting.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/568f130c/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
index f1fdfbf..1287dd2 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
@@ -203,7 +203,7 @@ public class TestIndexSorting extends LuceneTestCase {
     // segment sort is needed
     codec.needsIndexSort = true;
     codec.numCalls = 0;
-    for (int i = 200; i < 300; i++) {
+    for (int i = 201; i < 300; i++) {
       Document doc = new Document();
       doc.add(new StringField("id", Integer.toString(i), Store.YES));
       doc.add(new NumericDocValuesField("id", i));
@@ -1638,7 +1638,6 @@ public class TestIndexSorting extends LuceneTestCase {
     dir.close();
   }
 
-
   // docvalues fields involved in the index sort cannot be updated
   public void testBadDVUpdate() throws Exception {
     Directory dir = newDirectory();