You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2019/05/22 07:11:54 UTC

[lucene-solr] branch branch_8x updated: LUCENE-8757: Fix test bug.

This is an automated email from the ASF dual-hosted git repository.

jpountz pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new dbfa845  LUCENE-8757: Fix test bug.
dbfa845 is described below

commit dbfa8454e21bef1eb4ecabef7de6d801cadc2df8
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed May 22 09:10:52 2019 +0200

    LUCENE-8757: Fix test bug.
---
 .../src/test/org/apache/lucene/index/TestSegmentToThreadMapping.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSegmentToThreadMapping.java b/lucene/core/src/test/org/apache/lucene/index/TestSegmentToThreadMapping.java
index 62299df..5ea8f83 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestSegmentToThreadMapping.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestSegmentToThreadMapping.java
@@ -255,7 +255,7 @@ public class TestSegmentToThreadMapping extends LuceneTestCase {
     List<LeafReaderContext> leafReaderContexts = new ArrayList<>();
     int max = 500_000;
     int min = 10_000;
-    int numSegments = random().nextInt(50);
+    int numSegments = 1 + random().nextInt(50);
 
     for (int i = 0; i < numSegments; i++) {
       leafReaderContexts.add(new LeafReaderContext(dummyIndexReader(random().nextInt((max - min) + 1) + min)));