Apache Solr open-source search software
SOLR-5069 fixing test failure
Noble Paulc0cc5946b537
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.javaindex 22867918e64..a4a2bb5232e 100644--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java@@ -1189,8 +1189,6 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBaCloudSolrServer client = createCloudClient(null);try {createCollection(collectionName, client,2,2);-- waitForRecoveriesToFinish(collectionName, false);String newReplicaName = Assign.assignNode(collectionName , client.getZkStateReader().getClusterState() );ArrayList<String> nodeList = new ArrayList<String>(client.getZkStateReader().getClusterState().getLiveNodes());Collections.shuffle(nodeList);@@ -1270,7 +1268,8 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBaMAX_SHARDS_PER_NODE, maxShardsPerNode,NUM_SLICES, numShards);Map<String,List<Integer>> collectionInfos = new HashMap<String,List<Integer>>();- createCollection(collectionInfos, COLL_NAME, props, client);+ createCollection(collectionInfos, COLL_NAME, props, client,"conf1");+ waitForRecoveriesToFinish(COLL_NAME, false);}@Override