Skip to content

Commit 17cfe7f

Browse files
committed
Fix flaky test
1 parent 81d24f8 commit 17cfe7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_sharing_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def test_expiry_in_token_matches_expiry_in_response(self): # ExpiryInTokenMatch
283283
key_sharing_response_json([master_key, site_key], identity_scope=IdentityScope.UID2,
284284
default_keyset_id=99999, token_expiry_seconds=2))
285285

286-
encryption_data_response = self._client.encrypt_raw_uid_into_token(example_uid)
286+
encryption_data_response = self._client._encrypt_raw_uid_into_token(example_uid, now=now)
287287
self.assertEqual(encryption_data_response.status, EncryptionStatus.SUCCESS)
288288

289289
result = self._client._decrypt_token_into_raw_uid(encryption_data_response.encrypted_data, now + dt.timedelta(seconds=1))

0 commit comments

Comments
 (0)