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

This commit is contained in:
Christine Poerschke 2018-10-16 10:52:11 -04:00
parent 761f8aaf79
commit 7fa19d2676
1 changed files with 1 additions and 1 deletions

View File

@ -77,6 +77,6 @@ public class ShardParamsTest extends LuceneTestCase
// values that aren't "requireZkConnected" or boolean should throw an exception // values that aren't "requireZkConnected" or boolean should throw an exception
params.set(ShardParams.SHARDS_TOLERANT, "bogusValue"); params.set(ShardParams.SHARDS_TOLERANT, "bogusValue");
Exception exception = expectThrows(SolrException.class, () -> ShardParams.getShardsTolerantAsBool(params)); Exception exception = expectThrows(SolrException.class, () -> ShardParams.getShardsTolerantAsBool(params));
assertTrue(exception.getMessage().startsWith("invalid boolean value: ")); assertTrue(exception.getMessage(), exception.getMessage().startsWith("invalid boolean value: "));
} }
} }