Skip to content

Commit

Permalink
tests: add retry for 400 from 'Bucket.update' after removing labels (#…
Browse files Browse the repository at this point in the history
…550)

Closes #541
  • Loading branch information
tseaver authored Aug 23, 2021
1 parent 6eff22d commit 131a77f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/system/test_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def test_bucket_update_labels(storage_client, buckets_to_delete):
assert bucket.labels == new_labels

bucket.labels = {}
bucket.update()
# See https://github.com/googleapis/python-storage/issues/541
retry_400 = _helpers.RetryErrors(exceptions.BadRequest)
retry_400(bucket.update)()
assert bucket.labels == {}


Expand Down

0 comments on commit 131a77f

Please sign in to comment.