diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java index 23b67d4b055..24f4a4b4f43 100644 --- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java +++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java @@ -892,6 +892,8 @@ public class CloudSolrClientTest extends SolrCloudTestCase { queryWithPreferReplicaTypes(getRandomClient(), "TLOG|PULL", true, collectionName); queryWithPreferReplicaTypes(getRandomClient(), "NRT", false, collectionName); queryWithPreferReplicaTypes(getRandomClient(), "NRT|PULL", true, collectionName); + CollectionAdminRequest.deleteCollection(collectionName) + .processAndWait(cluster.getSolrClient(), TIMEOUT); } private void queryWithPreferReplicaTypes(CloudSolrClient cloudClient,