SOLR-5880: Fix test failure when n=1. Make it at least 2.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1583721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-04-01 15:50:12 +00:00
parent 930b68033e
commit ca71f2f8d0
1 changed files with 2 additions and 2 deletions

View File

@ -238,9 +238,9 @@ public class CloudSolrServerTest extends AbstractFullDistribZkTestBase {
// 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();