SOLR-12733: SolrMetricReporterTest failure

This commit is contained in:
Erick 2018-09-05 17:04:31 -07:00
parent b4a1548248
commit 37375ae600
3 changed files with 6 additions and 4 deletions

View File

@ -313,6 +313,8 @@ Bug Fixes
* SOLR-12728: RequestLoggingTest fails on occasion, not reproducible (Erick Erickson)
* SOLR-12733: SolrMetricReporterTest failure (Erick Erickson, David Smiley)
Optimizations
----------------------

View File

@ -20,15 +20,15 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.TestUtil;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.common.params.CoreAdminParams;
import org.apache.solr.core.PluginInfo;
import org.apache.solr.metrics.reporters.MockMetricReporter;
import org.apache.solr.schema.FieldType;
import org.junit.Test;
public class SolrMetricReporterTest extends LuceneTestCase {
public class SolrMetricReporterTest extends SolrTestCaseJ4 {
@Test
public void testInit() throws Exception {

View File

@ -26,14 +26,14 @@ import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.solr.SolrTestCaseJ4;
import static org.apache.solr.util.DateMathParser.UTC;
/**
* Tests that the functions in DateMathParser
*/
public class DateMathParserTest extends LuceneTestCase {
public class DateMathParserTest extends SolrTestCaseJ4 {
/**
* A formatter for specifying every last nuance of a Date for easy