mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add test to discover "global" max_attempt bug (#1719)
This commit is contained in:
parent
fffe965d68
commit
fea4b24fb8
1 changed files with 4 additions and 1 deletions
|
|
@ -310,7 +310,10 @@ class ClientTest(unittest.TestCase):
|
|||
)
|
||||
|
||||
cert, updated_authzrs = self.client.poll_and_request_issuance(
|
||||
csr, authzrs, mintime=mintime)
|
||||
csr, authzrs, mintime=mintime,
|
||||
# make sure that max_attempts is per-authorization, rather
|
||||
# than global
|
||||
max_attempts=max(len(authzrs[0].retries), len(authzrs[1].retries)))
|
||||
self.assertTrue(cert[0] is csr)
|
||||
self.assertTrue(cert[1] is updated_authzrs)
|
||||
self.assertEqual(updated_authzrs[0].uri, 'a...')
|
||||
|
|
|
|||
Loading…
Reference in a new issue