Apache Solr open-source search software
SOLR-12876: upon failure report exception message in ShardParamsTest.testGetShardsTolerantAsBool
Christine Poerschke7fa19d2676af
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.javaindex 5694972d1d1..b17f217edcb 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 exceptionparams.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: "));}}