Skip to content

Commit ffbc116

Browse files
author
Takashi Matsuo
committed
add more retries for setup and teardown
1 parent 98fe9a0 commit ffbc116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monitoring/api/v3/alerts-client/snippets_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self):
6464

6565
def __enter__(self):
6666
@retry(wait_exponential_multiplier=1000, wait_exponential_max=10000,
67-
stop_max_attempt_number=5, retry_on_exception=retry_if_aborted)
67+
stop_max_attempt_number=10, retry_on_exception=retry_if_aborted)
6868
def setup():
6969
# Create a policy.
7070
policy = monitoring_v3.types.alert_pb2.AlertPolicy()
@@ -89,7 +89,7 @@ def setup():
8989
def __exit__(self, type, value, traceback):
9090
# Delete the policy and channel we created.
9191
@retry(wait_exponential_multiplier=1000, wait_exponential_max=10000,
92-
stop_max_attempt_number=5, retry_on_exception=retry_if_aborted)
92+
stop_max_attempt_number=10, retry_on_exception=retry_if_aborted)
9393
def teardown():
9494
try:
9595
self.alert_policy_client.delete_alert_policy(

0 commit comments

Comments
 (0)