lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject [1/4] lucene-solr:branch_7x: SOLR-12876: upon failure report exception message in ShardParamsTest.testGetShardsTolerantAsBool
Date Thu, 18 Oct 2018 22:17:08 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 2a04115a7 -> 4d811b798


SOLR-12876: upon failure report exception message in ShardParamsTest.testGetShardsTolerantAsBool


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

Branch: refs/heads/branch_7x
Commit: 1643df49d081ea5ed328463acb3238bda2d42878
Parents: 2a04115
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Tue Oct 16 10:52:11 2018 -0400
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Thu Oct 18 17:59:14 2018 -0400

----------------------------------------------------------------------
 .../src/test/org/apache/solr/common/params/ShardParamsTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1643df49/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java b/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java
index 5694972..b17f217 100644
--- a/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java
+++ b/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java
@@ -77,6 +77,6 @@ public class ShardParamsTest extends LuceneTestCase
     // values that aren't "requireZkConnected" or boolean should throw an exception
     params.set(ShardParams.SHARDS_TOLERANT, "bogusValue");
     Exception exception = expectThrows(SolrException.class, () -> ShardParams.getShardsTolerantAsBool(params));
-    assertTrue(exception.getMessage().startsWith("invalid boolean value: "));
+    assertTrue(exception.getMessage(), exception.getMessage().startsWith("invalid boolean
value: "));
   }
 }


Mime
View raw message