Release static solrClient after the test is done (occasionally caused failures on jenkins).

This commit is contained in:
Andrzej Bialecki 2019-04-10 12:24:36 +02:00
parent 81fe814428
commit d40a6d4e95
1 changed files with 6 additions and 0 deletions

View File

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