summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2023-07-06 10:24:24 +0200
committerStefan Eissing <icing@apache.org>2023-07-06 10:24:24 +0200
commitf3c57a99a8d4ebe026b2e0e5f7ee6ec1965e9df0 (patch)
tree9a1c8b4d8c43b4120ac732d436803e89743f7a11 /test
parentproxy_util: revert timeout selection on a proxy tunnel back to (diff)
downloadapache2-f3c57a99a8d4ebe026b2e0e5f7ee6ec1965e9df0.tar.xz
apache2-f3c57a99a8d4ebe026b2e0e5f7ee6ec1965e9df0.zip
test h2: be more generous in stutter step jittering.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/modules/http2/test_712_buffering.py2
-rw-r--r--test/pyhttpd/curl.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/test/modules/http2/test_712_buffering.py b/test/modules/http2/test_712_buffering.py
index 9eb26890ad..0a6978b427 100644
--- a/test/modules/http2/test_712_buffering.py
+++ b/test/modules/http2/test_712_buffering.py
@@ -33,7 +33,7 @@ class TestBuffering:
url = env.mkurl("https", "cgi", "/h2test/echo")
base_chunk = "0123456789"
chunks = ["chunk-{0:03d}-{1}\n".format(i, base_chunk) for i in range(5)]
- stutter = timedelta(seconds=0.2) # this is short, but works on my machine (tm)
+ stutter = timedelta(seconds=0.2)
piper = CurlPiper(env=env, url=url)
piper.stutter_check(chunks, stutter)
diff --git a/test/pyhttpd/curl.py b/test/pyhttpd/curl.py
index 84ef9c8161..d377a91238 100644
--- a/test/pyhttpd/curl.py
+++ b/test/pyhttpd/curl.py
@@ -130,9 +130,7 @@ class CurlPiper:
delta_mics += datetime.time(23, 59, 59, 999999)
recv_deltas.append(datetime.timedelta(microseconds=delta_mics))
last_mics = mics
- stutter_td = datetime.timedelta(seconds=stutter.total_seconds() * 0.9) # 10% leeway
- # TODO: the first two chunks are often close together, it seems
- # there still is a little buffering delay going on
+ stutter_td = datetime.timedelta(seconds=stutter.total_seconds() * 0.75) # 25% leeway
for idx, td in enumerate(recv_deltas[1:]):
assert stutter_td < td, \
f"chunk {idx} arrived too early \n{recv_deltas}\nafter {td}\n{recv_err}"