]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest: test 07_22 stabilize
authorStefan Eissing <stefan@eissing.org>
Fri, 2 Jan 2026 13:23:21 +0000 (14:23 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 2 Jan 2026 23:48:54 +0000 (00:48 +0100)
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

tests/http/test_07_upload.py

index daead909300093092fef6004f19c0c0716aeeffe..9a21a8bb7e834ce32f801160a34c734212401fc6 100644 (file)
@@ -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