summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2024-04-05 00:19:09 +0200
committerRainer Jung <rjung@apache.org>2024-04-05 00:19:09 +0200
commit773a5f8f3499aa2848a584390d504b1c07b883c6 (patch)
treee28ebbde5dec635559d49613bdce9d9ab9c8337f /test
parentFix pytest failure when using older nghttp2 (diff)
downloadapache2-773a5f8f3499aa2848a584390d504b1c07b883c6.tar.xz
apache2-773a5f8f3499aa2848a584390d504b1c07b883c6.zip
Fix failing pytest modules/http2/test_712_buffering.py:48.
Do not count lines like "00:12:26.578220 <= Recv data, 0 bytes (0x0)" (which happen before the final close) as receiving a real chunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/pyhttpd/curl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pyhttpd/curl.py b/test/pyhttpd/curl.py
index d377a91238..7dcc25bcc8 100644
--- a/test/pyhttpd/curl.py
+++ b/test/pyhttpd/curl.py
@@ -112,7 +112,7 @@ class CurlPiper:
recv_times = []
for line in "".join(recv_err).split('\n'):
m = re.match(r'^\s*(\d+:\d+:\d+(\.\d+)?) <= Recv data, (\d+) bytes.*', line)
- if m:
+ if m and int(m.group(3)) > 0:
recv_times.append(datetime.time.fromisoformat(m.group(1)))
# received as many chunks as we sent
assert len(chunks) == len(recv_times), "received response not in {0} chunks, but {1}".format(