You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2014/04/01 17:50:13 UTC
svn commit: r1583721 -
/lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrServerTest.java
Author: shalin
Date: Tue Apr 1 15:50:12 2014
New Revision: 1583721
URL: http://svn.apache.org/r1583721
Log:
SOLR-5880: Fix test failure when n=1. Make it at least 2.
Modified:
lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrServerTest.java
Modified: lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrServerTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrServerTest.java?rev=1583721&r1=1583720&r2=1583721&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrServerTest.java (original)
+++ lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrServerTest.java Tue Apr 1 15:50:12 2014
@@ -238,9 +238,9 @@ public class CloudSolrServerTest extends
// Calculate a number of shard keys that route to the same shard.
int n;
if (TEST_NIGHTLY) {
- n = random().nextInt(999) + 1;
+ n = random().nextInt(999) + 2;
} else {
- n = random().nextInt(9) + 1;
+ n = random().nextInt(9) + 2;
}
List<String> sameShardRoutes = Lists.newArrayList();