You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2023/03/09 22:59:20 UTC
svn commit: r1908228 - /httpd/httpd/trunk/test/modules/http2/test_004_post.py
Author: rjung
Date: Thu Mar 9 22:59:20 2023
New Revision: 1908228
URL: http://svn.apache.org/viewvc?rev=1908228&view=rev
Log:
Make test more robust, log might have a short delay.
Modified:
httpd/httpd/trunk/test/modules/http2/test_004_post.py
Modified: httpd/httpd/trunk/test/modules/http2/test_004_post.py
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/modules/http2/test_004_post.py?rev=1908228&r1=1908227&r2=1908228&view=diff
==============================================================================
--- httpd/httpd/trunk/test/modules/http2/test_004_post.py (original)
+++ httpd/httpd/trunk/test/modules/http2/test_004_post.py Thu Mar 9 22:59:20 2023
@@ -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])