Skip to content

Commit

Permalink
Harden 'test_access_to_public_bucket' systest against 429 / 503 error…
Browse files Browse the repository at this point in the history
…s. (#8997)

Closes #8996.
  • Loading branch information
tseaver authored Aug 8, 2019
1 parent adccba0 commit 6d04920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,9 +1335,9 @@ class TestAnonymousClient(unittest.TestCase):
def test_access_to_public_bucket(self):
anonymous = storage.Client.create_anonymous_client()
bucket = anonymous.bucket(self.PUBLIC_BUCKET)
blob, = bucket.list_blobs(max_results=1)
blob, = retry_429_503(bucket.list_blobs)(max_results=1)
with tempfile.TemporaryFile() as stream:
blob.download_to_file(stream)
retry_429_503(blob.download_to_file)(stream)


class TestKMSIntegration(TestStorageFiles):
Expand Down

0 comments on commit 6d04920

Please sign in to comment.