You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/09/09 14:09:34 UTC
[lucene-solr] branch reference_impl_dev updated: @819 Fix test.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new 54b84ab @819 Fix test.
54b84ab is described below
commit 54b84abcc70ed2bd29ed85ef2df6a454644b1001
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Wed Sep 9 09:08:11 2020 -0500
@819 Fix test.
---
.../api/collections/TestCollectionsAPIViaSolrCloudCluster.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/solr/core/src/test/org/apache/solr/cloud/api/collections/TestCollectionsAPIViaSolrCloudCluster.java b/solr/core/src/test/org/apache/solr/cloud/api/collections/TestCollectionsAPIViaSolrCloudCluster.java
index c316809..d018655 100644
--- a/solr/core/src/test/org/apache/solr/cloud/api/collections/TestCollectionsAPIViaSolrCloudCluster.java
+++ b/solr/core/src/test/org/apache/solr/cloud/api/collections/TestCollectionsAPIViaSolrCloudCluster.java
@@ -108,7 +108,12 @@ public class TestCollectionsAPIViaSolrCloudCluster extends SolrCloudTestCase {
@Test
public void testDeleteUnknownCollection() throws Exception {
// deleting an unknown collection should not be slow
- CollectionAdminRequest.deleteCollection("foobar432").process(cluster.getSolrClient());
+ try {
+ CollectionAdminRequest.deleteCollection("foobar432").process(cluster.getSolrClient());
+ fail("expected exception");
+ } catch (Exception e) {
+ assertTrue(e.getMessage().contains("Could not find collection"));
+ }
}
@Test