mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
pytest: test 07_22 stabilize
Do not generate a 400 response code, but use a 200 one. The upload needs to fail on sending, not on seeing a 400 response. Seeing a 400 before the sending fails (when CI timings shift) will expose the wrong error code. Ref: #20112 Closes #20164
This commit is contained in:
parent
2c32ab12a0
commit
a348f19bd1
@ -225,7 +225,7 @@ class TestUpload:
|
||||
count = 1
|
||||
curl = CurlClient(env=env)
|
||||
url = f'https://{env.authority_for(env.domain1, proto)}'\
|
||||
f'/curltest/tweak?status=400&delay=5ms&chunks=1&body_error=reset&id=[0-{count-1}]'
|
||||
f'/curltest/tweak?status=200&delay=5ms&chunks=1&body_error=reset&id=[0-{count-1}]'
|
||||
r = curl.http_upload(urls=[url], data=f'@{fdata}', alpn_proto=proto,
|
||||
extra_args=['--parallel'])
|
||||
# depending on timing and protocol, we might get CURLE_PARTIAL_FILE or
|
||||
|
||||
Loading…
Reference in New Issue
Block a user