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
This commit is contained in:
Stefan Eissing 2025-06-10 17:14:00 +02:00 committed by Daniel Stenberg
parent d4db756128
commit 950bd72401
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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):