Skip to content

Commit 3a61db3

Browse files
committed
Revert adding psth to key
1 parent 164b8a7 commit 3a61db3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/e2e-tests/lib/authentication.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@ def generate_authentication(self, env, base_url, path):
6666
_, latest_token_expiry = self.tokens.get(env, (None, 0))
6767

6868
# Generate new token if latest token will expire in 15 seconds
69-
key = (env, test_url)
70-
if key not in self.tokens or latest_token_expiry < int(time()) + 15:
71-
self.tokens[key] = self.generate_and_test_new_token(api_key, private_key, url, kid, test_url)
69+
if env not in self.tokens or latest_token_expiry < int(time()) + 15:
70+
self.tokens[env] = self.generate_and_test_new_token(api_key, private_key, url, kid, test_url)
7271

73-
authentication_secret = self.tokens[key][0]
72+
authentication_secret = self.tokens[env][0]
7473
return Secret(authentication_secret)
7574

7675
def generate_and_test_new_token(self, api_key, private_key, url, kid, test_url):

0 commit comments

Comments
 (0)