Skip to content

Commit

Permalink
Fix failing pytest modules/http2/test_712_buffering.py:48.
Browse files Browse the repository at this point in the history
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.

Backport of r1918606 from trunk.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1916807 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rainerjung committed Apr 4, 2024
1 parent 6500f49 commit 8fdace4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pyhttpd/curl.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def stutter_check(self, chunks: [str], stutter: datetime.timedelta):
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(
Expand Down

0 comments on commit 8fdace4

Please sign in to comment.