Skip to content

Commit a11f7e8

Browse files
authored
Update api_key_test.py (GoogleCloudPlatform#9935)
fix: wait longer for retries
1 parent 77fb5a5 commit a11f7e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

auth/api-client/api_key_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ def get_key_id(api_key_name: str):
5050

5151
def test_authenticate_with_api_key(api_key: Key, capsys: CaptureFixture):
5252
out = "Failed to authenticate after 5 tries"
53-
for _ in range(5):
53+
for i in range(5):
5454
try:
5555
authenticate_with_api_key.authenticate_with_api_key(
5656
PROJECT, api_key.key_string
5757
)
5858
out, _ = capsys.readouterr()
5959
break
6060
except Exception:
61-
sleep(10)
61+
sleep(i * 10)
6262

6363
assert re.search("Successfully authenticated using the API key", out)
6464

0 commit comments

Comments
 (0)