diff options
author | Stefan Eissing <stefan@eissing.org> | 2023-03-30 16:30:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-30 23:51:16 +0200 |
commit | 041cf77cbda1dbbe9677becc8f0712463899857b (patch) | |
tree | 216136f1ce6220fb657fbdf240c516eae3b99727 /tests/http | |
parent | 744dcf22fac6cf12a9112df106b61864982afef9 (diff) | |
download | curl-041cf77cbda1dbbe9677becc8f0712463899857b.tar.gz |
tests/http: relax connection check in test_07_02
Only 1 connection will be used when curl is slow, happens when
address-sanitized in CI, for example
Closes #10865
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/test_02_download.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/http/test_02_download.py b/tests/http/test_02_download.py index a0ae8a820..4b131594b 100644 --- a/tests/http/test_02_download.py +++ b/tests/http/test_02_download.py @@ -159,8 +159,10 @@ class TestDownload: ]) r.check_exit_code(0) r.check_stats(count=count, exp_status=200) - # should have used 2 connections only (test servers allow 100 req/conn) - assert r.total_connects == 2, "h2 should use fewer connections here" + # should have used at most 2 connections only (test servers allow 100 req/conn) + # it may be just 1 on slow systems where request are answered faster than + # curl can exhaust the capacity or if curl runs with address-sanitizer speed + assert r.total_connects <= 2, "h2 should use fewer connections here" # download files parallel with http/1.1, check connection not reused @pytest.mark.parametrize("proto", ['http/1.1']) |