]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
test: adapting http2 test 200_16 to compensate for not getting a response.
authorStefan Eissing <icing@apache.org>
Thu, 25 Nov 2021 15:48:08 +0000 (15:48 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 25 Nov 2021 15:48:08 +0000 (15:48 +0000)
      This happens for newer nghttp2 versions that RST a stream with the
      tested, invalid header.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1895334 13f79535-47bb-0310-9956-ffa450edef68

test/modules/http2/test_200_header_invalid.py

index f0fe3772726e87c919f5ad8c1761b57c9499a6a8..796b0b44bb73cf76852af0e1d6ca6e2a4d3d200e 100644 (file)
@@ -168,10 +168,10 @@ class TestStore:
         opt = ["-H:method: GET /hello.py"]
         r = env.nghttp().get(url, options=opt)
         assert r.exit_code == 0, r
-        assert r.response
-        assert r.response["status"] == 400
+        if r.response:
+            assert r.response["status"] == 400
         url = env.mkurl("https", "cgi", "/proxy/hello.py")
         r = env.nghttp().get(url, options=opt)
         assert r.exit_code == 0, r
-        assert r.response
-        assert r.response["status"] == 400
+        if r.response:
+            assert r.response["status"] == 400