fix AfterClass in OverseerTest to not fail with NPE if assumeWorkingMockito() call short circuited the BeforeClass

This commit is contained in:
Chris Hostetter 2019-02-28 15:17:12 -07:00
parent 02f1773be8
commit 5e28e94a93
1 changed files with 7 additions and 2 deletions

View File

@ -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