Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 954f83a

Browse filesBrowse files
authored
test: retry ServiceUnavailable posix_download_test (GoogleCloudPlatform#8217)
* test: retry ServiceUnavailable posix_download_test * Fix build * Fix build
1 parent cdb7fc9 commit 954f83a
Copy full SHA for 954f83a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎storagetransfer/posix_download_test.py

Copy file name to clipboardExpand all lines: storagetransfer/posix_download_test.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414

1515
import backoff
1616
from google.api_core.exceptions import RetryError
17+
from google.api_core.exceptions import ServiceUnavailable
1718
from google.cloud.storage import Bucket
1819

1920
import posix_download
2021

2122

22-
@backoff.on_exception(backoff.expo, (RetryError,), max_time=60)
23+
@backoff.on_exception(backoff.expo, (RetryError, ServiceUnavailable,), max_time=60)
2324
def test_posix_download(
2425
capsys, project_id: str, job_description_unique: str,
2526
agent_pool_name: str, posix_root_directory: str,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.