mirror of https://github.com/apache/lucene.git
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:
parent
930b68033e
commit
ca71f2f8d0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue