Skip to content

Commit 8429f08

Browse files
authored
fix(storage): add time for bucket patch changes to propagate (GoogleCloudPlatform#6752)
1 parent 120f64c commit 8429f08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/cloud-client/bucket_lock_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ def test_enable_disable_bucket_default_event_based_hold(bucket, capsys):
123123
"Default event-based hold is enabled for {}".format(bucket.name) in out
124124
)
125125

126+
# Changes to the bucket will be readable immediately after writing,
127+
# but configuration changes may take time to propagate.
128+
time.sleep(10)
129+
126130
blob = bucket.blob(BLOB_NAME)
127131
blob.upload_from_string(BLOB_CONTENT)
128132
assert blob.event_based_hold is True

0 commit comments

Comments
 (0)