Mailing List Archive

svn commit: r1895334 - /httpd/httpd/branches/2.4.x/test/modules/http2/test_200_header_invalid.py
Author: icing
Date: Thu Nov 25 15:48:08 2021
New Revision: 1895334

URL: http://svn.apache.org/viewvc?rev=1895334&view=rev
Log:
test: adapting http2 test 200_16 to compensate for not getting a response.
This happens for newer nghttp2 versions that RST a stream with the
tested, invalid header.


Modified:
httpd/httpd/branches/2.4.x/test/modules/http2/test_200_header_invalid.py

Modified: httpd/httpd/branches/2.4.x/test/modules/http2/test_200_header_invalid.py
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/test/modules/http2/test_200_header_invalid.py?rev=1895334&r1=1895333&r2=1895334&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/test/modules/http2/test_200_header_invalid.py (original)
+++ httpd/httpd/branches/2.4.x/test/modules/http2/test_200_header_invalid.py Thu Nov 25 15:48:08 2021
@@ -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