diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 6bb1299fab1..aa0698cc9c4 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -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 ---------------------- diff --git a/solr/core/src/test/org/apache/solr/metrics/SolrMetricReporterTest.java b/solr/core/src/test/org/apache/solr/metrics/SolrMetricReporterTest.java index f3359cca5a0..7d255a3843e 100644 --- a/solr/core/src/test/org/apache/solr/metrics/SolrMetricReporterTest.java +++ b/solr/core/src/test/org/apache/solr/metrics/SolrMetricReporterTest.java @@ -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 { diff --git a/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java b/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java index 8cc417b33f6..f5d3de27412 100644 --- a/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java +++ b/solr/core/src/test/org/apache/solr/util/DateMathParserTest.java @@ -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