mirror of https://github.com/apache/lucene.git
Release static solrClient after the test is done (occasionally caused failures on jenkins).
This commit is contained in:
parent
81fe814428
commit
d40a6d4e95
|
@ -49,6 +49,7 @@ import org.apache.solr.common.params.CommonParams;
|
|||
import org.apache.solr.common.params.ModifiableSolrParams;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
import org.apache.solr.util.LogLevel;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
@ -97,6 +98,11 @@ public class AutoscalingHistoryHandlerTest extends SolrCloudTestCase {
|
|||
cluster.waitForActiveCollection(COLL_NAME, 1, 3);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void releaseClient() throws Exception {
|
||||
solrClient = null;
|
||||
}
|
||||
|
||||
public static class TesterListener extends TriggerListenerBase {
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue