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 2021/02/03 05:24:53 UTC

[lucene-solr] branch reference_impl_dev updated: @1314 Harden 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 51eef1a  @1314 Harden test.
51eef1a is described below

commit 51eef1a46eb39e8ad4c2d48c9653e0cf5b8af10a
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Tue Feb 2 23:24:26 2021 -0600

    @1314 Harden test.
---
 solr/core/src/test/org/apache/solr/request/TestStreamBody.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/test/org/apache/solr/request/TestStreamBody.java b/solr/core/src/test/org/apache/solr/request/TestStreamBody.java
index 53f5b4a..3c8dbf8 100644
--- a/solr/core/src/test/org/apache/solr/request/TestStreamBody.java
+++ b/solr/core/src/test/org/apache/solr/request/TestStreamBody.java
@@ -92,7 +92,7 @@ public class TestStreamBody extends RestTestBase {
       queryRequest.process(client);
       fail();
     } catch (SolrException se) {
-      assertTrue(se.getMessage(), se.getMessage().contains("Bad contentType for search handler :text/xml"));
+      assertTrue(se.getMessage(), se.getMessage().contains("Bad contentType for search handler :text/xml") || se.getMessage().contains("Stream Body is disabled"));
     }
   }