mirror of https://github.com/apache/lucene.git
SOLR-12833: prevent NPE in DistributedUpdateProcessorTest AfterClass when mockito assumption fails in BeforeClass
This commit is contained in:
parent
81cfbcd009
commit
cde00b9a84
|
@ -65,7 +65,9 @@ public class DistributedUpdateProcessorTest extends SolrTestCaseJ4 {
|
|||
|
||||
@AfterClass
|
||||
public static void AfterClass() {
|
||||
if (null != executor) { // may not have inited due to lack of mockito
|
||||
executor.shutdown();
|
||||
}
|
||||
System.clearProperty("enable.update.log");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue