aboutsummaryrefslogtreecommitdiff
path: root/tests_async/test_credentials_async.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests_async/test_credentials_async.py')
-rw-r--r--tests_async/test_credentials_async.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests_async/test_credentials_async.py b/tests_async/test_credentials_async.py
index 0a48908..5315483 100644
--- a/tests_async/test_credentials_async.py
+++ b/tests_async/test_credentials_async.py
@@ -46,7 +46,9 @@ def test_expired_and_valid():
# Set the expiration to one second more than now plus the clock skew
# accomodation. These credentials should be valid.
credentials.expiry = (
- datetime.datetime.utcnow() + _helpers.CLOCK_SKEW + datetime.timedelta(seconds=1)
+ datetime.datetime.utcnow()
+ + _helpers.REFRESH_THRESHOLD
+ + datetime.timedelta(seconds=1)
)
assert credentials.valid