diff --git a/letsencrypt/tests/acme_util.py b/letsencrypt/tests/acme_util.py index 48e3beba7..8780e8095 100644 --- a/letsencrypt/tests/acme_util.py +++ b/letsencrypt/tests/acme_util.py @@ -125,10 +125,9 @@ def gen_authzr(authz_status, domain, challs, statuses, combos=True): if combos: authz_kwargs.update({"combinations": gen_combos(challbs)}) if authz_status == messages2.STATUS_VALID: - now = datetime.datetime.now() authz_kwargs.update({ "status": authz_status, - "expires": datetime.datetime(now.year, now.month + 1, now.day), + "expires": datetime.datetime.now() + datetime.timedelta(days=31), }) else: authz_kwargs.update({