Skip to content

Commit

Permalink
fixup: 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti committed Jun 6, 2024
1 parent 3d56f04 commit 359a915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ def run_curl(args, input=None, timeout=TIMEOUT):
"""
popen_args = ['curl', '-q'] + args
if timeout is not None:
popen_args = popen_args + ["--max-time", str(timeout)]
popen_args = popen_args + ["--max-time", str(timeout - 3)]
stdin_value = PIPE if input is not None else None
with subprocess.Popen(popen_args, stdin=stdin_value, stdout=PIPE,
stderr=PIPE, universal_newlines=True) as p:
Expand Down
6 changes: 3 additions & 3 deletions tests/system_tests_http1_observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ def test_02_post(self):

curl_args = [
'--http1.1',
'--output', "/dev/null",
#'--output', "/dev/null",
'-H', "Transfer-Encoding: chunked",
'--data-ascii', "Start",
'--data-ascii', "End",
f"http://localhost:{l_port}/cgi-bin/script.py"
]

(rc, _, err) = run_curl(args=curl_args)
self.assertEqual(0, rc, f"curl post failed: {err}")
(rc, out, err) = run_curl(args=curl_args)
self.assertEqual(0, rc, f"curl post failed: {rc}, {err} {out}")

# this will pipeline 3 get requests due to the globbing parameter
# 'ignore':
Expand Down

0 comments on commit 359a915

Please sign in to comment.