mirror of https://github.com/apache/lucene.git
fix AfterClass in OverseerTest to not fail with NPE if assumeWorkingMockito() call short circuited the BeforeClass
This commit is contained in:
parent
02f1773be8
commit
5e28e94a93
|
@ -304,10 +304,15 @@ public class OverseerTest extends SolrTestCaseJ4 {
|
|||
|
||||
@AfterClass
|
||||
public static void afterClass() throws Exception {
|
||||
zkClient.printLayoutToStdOut();
|
||||
server.shutdown();
|
||||
if (null != zkClient) {
|
||||
zkClient.printLayoutToStdOut();
|
||||
}
|
||||
|
||||
System.clearProperty("solr.zkclienttimeout");
|
||||
|
||||
if (null != server) {
|
||||
server.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
|
|
Loading…
Reference in New Issue