SOLR-11617: Fix test: delete aliases without async in tearDown

This commit is contained in:
David Smiley 2018-01-28 22:48:04 -05:00
parent d85a1666a1
commit 00d453d27c
1 changed files with 2 additions and 6 deletions

View File

@ -86,14 +86,10 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
// make sure all aliases created are removed for the next test method
Map<String, String> aliases = new CollectionAdminRequest.ListAliases().process(cluster.getSolrClient()).getAliases();
for (String alias : aliases.keySet()) {
CollectionAdminRequest.deleteAlias(alias).processAsync(cluster.getSolrClient());
CollectionAdminRequest.deleteAlias(alias).process(cluster.getSolrClient());
}
// make sure all collections are removed for the next test method
List<String> collections = CollectionAdminRequest.listCollections(cluster.getSolrClient());
for (String collection : collections) {
CollectionAdminRequest.deleteCollection(collection).process(cluster.getSolrClient());
}
cluster.deleteAllCollections();
}
@Test