Skip to content

Commit

Permalink
Increase retry deadline to mitigate test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut committed Jan 28, 2021
1 parent f3ddc14 commit ef2fe8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/job/test_base.py
Expand Up @@ -943,7 +943,7 @@ def test_result_w_retry_wo_state(self):
custom_predicate = mock.Mock()
custom_predicate.return_value = True
custom_retry = google.api_core.retry.Retry(
predicate=custom_predicate, initial=0.001, maximum=0.001, deadline=0.001,
predicate=custom_predicate, initial=0.001, maximum=0.001, deadline=0.1,
)
self.assertIs(job.result(retry=custom_retry), job)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/job/test_query.py
Expand Up @@ -1052,7 +1052,7 @@ def test_result_w_retry(self):
initial=0.001,
maximum=0.001,
multiplier=1.0,
deadline=0.001,
deadline=0.1,
predicate=custom_predicate,
)

Expand Down

0 comments on commit ef2fe8e

Please sign in to comment.