mirror of https://github.com/apache/lucene.git
SOLR-8787: Shutdown MiniSolrCloudCluster in a finally block
This commit is contained in:
parent
6528dacb0e
commit
0a15699caa
|
@ -104,7 +104,7 @@ public class TestAuthenticationFramework extends LuceneTestCase {
|
|||
public void testBasics() throws Exception {
|
||||
|
||||
MiniSolrCloudCluster miniCluster = createMiniSolrCloudCluster();
|
||||
|
||||
try {
|
||||
// Should pass
|
||||
collectionCreateSearchDelete(miniCluster);
|
||||
|
||||
|
@ -123,9 +123,10 @@ public class TestAuthenticationFramework extends LuceneTestCase {
|
|||
MockAuthenticationPlugin.expectedUsername = null;
|
||||
MockAuthenticationPlugin.expectedPassword = null;
|
||||
}
|
||||
|
||||
} finally {
|
||||
miniCluster.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue