aboutsummaryrefslogtreecommitdiff
path: root/tests/test_external_account.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_external_account.py')
-rw-r--r--tests/test_external_account.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_external_account.py b/tests/test_external_account.py
index e8297da..df6174f 100644
--- a/tests/test_external_account.py
+++ b/tests/test_external_account.py
@@ -976,7 +976,9 @@ class TestCredentials(object):
# Set the expiration to one second more than now plus the clock skew
# accomodation. These credentials should be valid.
credentials.expiry = (
- datetime.datetime.min + _helpers.CLOCK_SKEW + datetime.timedelta(seconds=1)
+ datetime.datetime.min
+ + _helpers.REFRESH_THRESHOLD
+ + datetime.timedelta(seconds=1)
)
assert credentials.valid
@@ -1027,7 +1029,9 @@ class TestCredentials(object):
# Set the expiration to one second more than now plus the clock skew
# accomodation. These credentials should be valid.
credentials.expiry = (
- datetime.datetime.min + _helpers.CLOCK_SKEW + datetime.timedelta(seconds=1)
+ datetime.datetime.min
+ + _helpers.REFRESH_THRESHOLD
+ + datetime.timedelta(seconds=1)
)
assert credentials.valid