summaryrefslogtreecommitdiffstats
path: root/test/modules/http2/test_004_post.py
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2023-03-09 23:59:20 +0100
committerRainer Jung <rjung@apache.org>2023-03-09 23:59:20 +0100
commit959bd494525598d9bd7670e211df6b771a2d4bbb (patch)
tree03a72db7bfee0b85e39712de3fa41e67d750d236 /test/modules/http2/test_004_post.py
parentFix tests test_202_trailer.py::TestTrailers::test_h2_202_03b (diff)
downloadapache2-959bd494525598d9bd7670e211df6b771a2d4bbb.tar.xz
apache2-959bd494525598d9bd7670e211df6b771a2d4bbb.zip
Make test more robust, log might have a short delay.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908228 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--test/modules/http2/test_004_post.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/modules/http2/test_004_post.py b/test/modules/http2/test_004_post.py
index da1f96efa9..16e9a0c9c9 100644
--- a/test/modules/http2/test_004_post.py
+++ b/test/modules/http2/test_004_post.py
@@ -5,6 +5,7 @@ import json
import os
import re
import sys
+import time
import pytest
@@ -173,6 +174,8 @@ CustomLog logs/test_004_30 issue_203
r = env.curl_get(url, 5, options=["--http2", "-H", "Range: bytes=0-{0}".format(chunk-1)])
assert 206 == r.response["status"]
assert chunk == len(r.response["body"].decode('utf-8'))
+ # Wait for log completeness
+ time.sleep(1)
# now check what response lengths have actually been reported
lines = open(logfile).readlines()
log_h2_full = json.loads(lines[-3])