lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [04/12] lucene-solr:jira/solr-9858: SOLR-10227 Fix a test failure.
Date Tue, 07 Mar 2017 12:50:44 GMT
SOLR-10227 Fix a test failure.


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

Branch: refs/heads/jira/solr-9858
Commit: 5ccc8e7ae9419ec8077f6fa6c3a2972edb9e393d
Parents: b66d133
Author: Andrzej Bialecki <ab@apache.org>
Authored: Sat Mar 4 09:31:26 2017 +0100
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Sat Mar 4 09:31:26 2017 +0100

----------------------------------------------------------------------
 .../src/test/org/apache/solr/metrics/SolrMetricManagerTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5ccc8e7a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java b/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
index 3813488..ee2acd3 100644
--- a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
+++ b/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
@@ -58,8 +58,8 @@ public class SolrMetricManagerTest extends SolrTestCaseJ4 {
 
     Map<String, Counter> metrics1 = SolrMetricTestUtils.getRandomMetrics(r, true);
     Map<String, Counter> metrics2 = SolrMetricTestUtils.getRandomMetrics(r, true);
-    String fromName = TestUtil.randomSimpleString(r, 1, 10);
-    String toName = TestUtil.randomSimpleString(r, 1, 10);
+    String fromName = "from-" + TestUtil.randomSimpleString(r, 1, 10);
+    String toName = "to-" + TestUtil.randomSimpleString(r, 1, 10);
     // register test metrics
     for (Map.Entry<String, Counter> entry : metrics1.entrySet()) {
       metricManager.register(fromName, entry.getValue(), false, entry.getKey(), "metrics1");


Mime
View raw message