You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by va...@apache.org on 2018/08/08 20:28:09 UTC

[2/2] lucene-solr:master: SOLR-11008: Use a lighter config for MetricsHandlerTest and ensure the core is up before the test starts

SOLR-11008: Use a lighter config for MetricsHandlerTest and ensure the core is up before the test starts


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/7c4584bd
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7c4584bd
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7c4584bd

Branch: refs/heads/master
Commit: 7c4584bd4f14917116b96a0931bab242d433e47a
Parents: 37e8fea
Author: Varun Thacker <va...@apache.org>
Authored: Tue Aug 7 13:19:44 2018 -0700
Committer: Varun Thacker <va...@apache.org>
Committed: Wed Aug 8 13:28:00 2018 -0700

----------------------------------------------------------------------
 solr/CHANGES.txt                                                 | 2 ++
 .../test/org/apache/solr/handler/admin/MetricsHandlerTest.java   | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7c4584bd/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 7468451..9c80773 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -282,6 +282,8 @@ Other Changes
 
 * SOLR-12617: Remove Commons BeanUtils as a dependency (Varun Thacker)
 
+* SOLR-11008: Use a lighter config for MetricsHandlerTest and ensure the core is up before the test starts (Varun Thacker)
+
 ==================  7.4.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7c4584bd/solr/core/src/test/org/apache/solr/handler/admin/MetricsHandlerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/handler/admin/MetricsHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/admin/MetricsHandlerTest.java
index 0fe5ad7..1730355 100644
--- a/solr/core/src/test/org/apache/solr/handler/admin/MetricsHandlerTest.java
+++ b/solr/core/src/test/org/apache/solr/handler/admin/MetricsHandlerTest.java
@@ -35,7 +35,9 @@ public class MetricsHandlerTest extends SolrTestCaseJ4 {
   @BeforeClass
   public static void beforeClass() throws Exception {
 
-    initCore("solrconfig.xml", "schema.xml");
+    initCore("solrconfig-minimal.xml", "schema.xml");
+    h.getCoreContainer().waitForLoadingCoresToFinish(30000);
+
     // manually register some metrics in solr.jvm and solr.jetty - TestHarness doesn't init them
     Counter c = h.getCoreContainer().getMetricManager().counter(null, "solr.jvm", "foo");
     c.inc();