Skip to content

Commit

Permalink
fix: try longer delay for quota (GoogleCloudPlatform#9624)
Browse files Browse the repository at this point in the history
* fix: try longer delay for quota

* fix: trying shorter wait
  • Loading branch information
engelke authored Apr 13, 2023
1 parent 1caed4f commit dc46ae3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions secretmanager/snippets/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def secret_id(client, project_id):
secret_path = client.secret_path(project_id, secret_id)
print("deleting secret {}".format(secret_id))
try:
time.sleep(1)
time.sleep(5)
client.delete_secret(request={"name": secret_path})
except exceptions.NotFound:
# Secret was already deleted, probably in the test
Expand All @@ -84,7 +84,7 @@ def secret(client, project_id, secret_id):
print("creating secret {}".format(secret_id))

parent = f"projects/{project_id}"
time.sleep(1)
time.sleep(5)
secret = client.create_secret(
request={
"parent": parent,
Expand All @@ -103,7 +103,7 @@ def secret_version(client, secret):
print("adding secret version to {}".format(secret_id))
parent = client.secret_path(project_id, secret_id)
payload = "hello world!".encode("UTF-8")
time.sleep(1)
time.sleep(5)
version = client.add_secret_version(
request={"parent": parent, "payload": {"data": payload}}
)
Expand Down

0 comments on commit dc46ae3

Please sign in to comment.