SOLR-8787: Shutdown MiniSolrCloudCluster in a finally block

This commit is contained in:
Shalin Shekhar Mangar 2016-06-30 22:32:23 +05:30
parent 6528dacb0e
commit 0a15699caa
1 changed files with 16 additions and 15 deletions

View File

@ -104,7 +104,7 @@ public class TestAuthenticationFramework extends LuceneTestCase {
public void testBasics() throws Exception { public void testBasics() throws Exception {
MiniSolrCloudCluster miniCluster = createMiniSolrCloudCluster(); MiniSolrCloudCluster miniCluster = createMiniSolrCloudCluster();
try {
// Should pass // Should pass
collectionCreateSearchDelete(miniCluster); collectionCreateSearchDelete(miniCluster);
@ -123,9 +123,10 @@ public class TestAuthenticationFramework extends LuceneTestCase {
MockAuthenticationPlugin.expectedUsername = null; MockAuthenticationPlugin.expectedUsername = null;
MockAuthenticationPlugin.expectedPassword = null; MockAuthenticationPlugin.expectedPassword = null;
} }
} finally {
miniCluster.shutdown(); miniCluster.shutdown();
} }
}
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {