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

(cherry picked from commit 5e28e94a930348c1ec8523cacdd57bb0842accf3)
This commit is contained in:
Chris Hostetter 2019-02-28 15:17:12 -07:00
parent d4158f0106
commit 62d7385a0e

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