mirror of https://github.com/apache/lucene.git
SOLR-12876: upon failure report exception message in ShardParamsTest.testGetShardsTolerantAsBool
This commit is contained in:
parent
761f8aaf79
commit
7fa19d2676
|
@ -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: "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue