From 5b9787eaba4762cb222f578cad621d7762bac4b3 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Wed, 13 Nov 2024 09:47:03 -0800 Subject: [PATCH] Update test case to account for refreshed token expiration rounding to the same value --- tests/hana_util_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hana_util_tests.py b/tests/hana_util_tests.py index 8effe5ab..9bb47c41 100644 --- a/tests/hana_util_tests.py +++ b/tests/hana_util_tests.py @@ -152,8 +152,8 @@ def _write_token(*_, **__): new_credentials['client_id']) self.assertEqual(credentials_on_disk['username'], new_credentials['username']) - self.assertGreater(new_credentials['expiration'], - credentials_on_disk['expiration']) + self.assertGreaterEqual(new_credentials['expiration'], + credentials_on_disk['expiration']) self.assertNotEqual(credentials_on_disk['access_token'], new_credentials['access_token']) self.assertNotEqual(credentials_on_disk['refresh_token'],