mirror of
https://github.com/curl/curl.git
synced 2026-04-24 08:32:12 +03:00
tests: make test_12_01 a bit more forgiving on connection counts
This commit is contained in:
parent
24726a437e
commit
5126cbda00
1 changed files with 2 additions and 5 deletions
|
|
@ -56,7 +56,8 @@ class TestReuse:
|
|||
r.check_response(count=count, http_status=200)
|
||||
# Server sends `Connection: close` on every 2nd request, requiring
|
||||
# a new connection
|
||||
assert r.total_connects == count/2
|
||||
delta = 5
|
||||
assert (count/2 - delta) < r.total_connects < (count/2 + delta)
|
||||
|
||||
@pytest.mark.parametrize("proto", ['http/1.1'])
|
||||
def test_12_02_h1_conn_timeout(self, env: Env,
|
||||
|
|
@ -75,7 +76,3 @@ class TestReuse:
|
|||
r.check_response(count=count, http_status=200)
|
||||
# Connections time out on server before we send another request,
|
||||
assert r.total_connects == count
|
||||
# we do not see how often a request was retried in the stats, so
|
||||
# we cannot check that connection reuse attempted a connection that
|
||||
# was later detected to be "dead". We would like to
|
||||
# assert stat['retry_count'] == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue