From: Stefan Eissing Date: Tue, 10 Jun 2025 15:14:00 +0000 (+0200) Subject: pytest test_07_70, weaken early data check X-Git-Tag: curl-8_15_0~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=950bd724014bc757ecc184dbd843667fdb3714a9;p=thirdparty%2Fcurl.git pytest test_07_70, weaken early data check Since the amount of early data sent in the upload test_07_70 varies much with how fast the server respondes and completes the handshake, assert that we did sent at least *some* early data instead of relying on a specific amount. Closes #17575 --- diff --git a/tests/http/test_07_upload.py b/tests/http/test_07_upload.py index dc28f2f4cf..990a999f33 100644 --- a/tests/http/test_07_upload.py +++ b/tests/http/test_07_upload.py @@ -768,7 +768,7 @@ class TestUpload: assert earlydata[0] == 0, f'{earlydata}\n{r.dump_logs()}' # depending on cpu load, curl might not upload as much before # the handshake starts and early data stops. - assert 102 <= earlydata[1] <= exp_early, f'{earlydata}\n{r.dump_logs()}' + assert 0 < earlydata[1] <= exp_early, f'{earlydata}\n{r.dump_logs()}' def check_downloads(self, client, r, source: List[str], count: int, complete: bool = True):