From: Stefan Eissing Date: Fri, 2 Jan 2026 13:23:21 +0000 (+0100) Subject: pytest: test 07_22 stabilize X-Git-Tag: curl-8_18_0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a348f19bd158197a3932b5c783edc2fb03abda2c;p=thirdparty%2Fcurl.git 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 --- diff --git a/tests/http/test_07_upload.py b/tests/http/test_07_upload.py index daead90930..9a21a8bb7e 100644 --- a/tests/http/test_07_upload.py +++ b/tests/http/test_07_upload.py @@ -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