Skip to content

Commit 954f83a

Browse files
authored
test: retry ServiceUnavailable posix_download_test (#8217)
* test: retry ServiceUnavailable posix_download_test * Fix build * Fix build
1 parent cdb7fc9 commit 954f83a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storagetransfer/posix_download_test.py

Lines 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)