From 950bd724014bc757ecc184dbd843667fdb3714a9 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 10 Jun 2025 17:14:00 +0200 Subject: [PATCH] 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 --- tests/http/test_07_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):