Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6ad120

Browse files
Takashi Matsuoleahecole
andauthored
fix(jobs): longer max retry time, shorter delay (GoogleCloudPlatform#4795)
possibly mitigate GoogleCloudPlatform#4755 Co-authored-by: Leah E. Cole <[email protected]>
1 parent f742842 commit f6ad120

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jobs/v3/api_client/email_alert_search_sample_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ def company_name():
2727

2828

2929
def retry_delay():
30-
# Always wait 60 seconds
31-
yield 60
30+
# Always wait 10 seconds
31+
yield 10
3232

3333

3434
def test_email_alert_search_sample(company_name, capsys):
3535

36-
@backoff.on_exception(retry_delay, AssertionError, max_time=300)
36+
@backoff.on_exception(retry_delay, AssertionError, max_time=420)
3737
def eventually_consistent_test():
3838
email_alert_search_sample.run_sample(company_name)
3939
out, _ = capsys.readouterr()

0 commit comments

Comments
 (0)