mirror of
https://github.com/apache/lucene.git
synced 2025-02-14 22:16:00 +00:00
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:
parent
d4158f0106
commit
62d7385a0e
@ -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…
x
Reference in New Issue
Block a user