SOLR-11676: Fix a SolrJ test to not expect replicationFactor that is not being set anymore

This commit is contained in:
Varun Thacker 2018-06-19 16:13:45 +05:30
parent dcfbaf31db
commit 81906d31a6
1 changed files with 2 additions and 4 deletions

View File

@ -145,12 +145,10 @@ public class CollectionAdminRequestRequiredParamsTest extends LuceneTestCase {
public void testCreateCollection() {
// shortest form
assertContainsParams(CollectionAdminRequest.createCollection("foo", null, 1, 1).getParams(),
ACTION, NAME, ZkStateReader.NUM_SHARDS_PROP,
"replicationFactor", ZkStateReader.NRT_REPLICAS);
ACTION, NAME, ZkStateReader.NUM_SHARDS_PROP, ZkStateReader.NRT_REPLICAS);
// shortest form w/ "explicitly" choosing "implicit" router
assertContainsParams(CollectionAdminRequest.createCollectionWithImplicitRouter("foo", null, "bar", 1).getParams(),
ACTION, NAME, "shards", "router.name",
"replicationFactor", ZkStateReader.NRT_REPLICAS);
ACTION, NAME, "shards", "router.name", ZkStateReader.NRT_REPLICAS);
}
public void testReloadCollection() {