]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest test_07_70, weaken early data check
authorStefan Eissing <stefan@eissing.org>
Tue, 10 Jun 2025 15:14:00 +0000 (17:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 11 Jun 2025 08:15:00 +0000 (10:15 +0200)
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

tests/http/test_07_upload.py

index dc28f2f4cff45c82211d5b76f919edfd59c696bf..990a999f33ddee8833938b8fe7ea9abe90b2ede8 100644 (file)
@@ -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):