We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c774ad5 commit 4cd4a04Copy full SHA for 4cd4a04
tests/system/test_bucket.py
@@ -626,7 +626,7 @@ def test_bucket_w_retention_period(
626
buckets_to_delete,
627
blobs_to_delete,
628
):
629
- period_secs = 10
+ period_secs = 3
630
bucket_name = _helpers.unique_name("w-retention-period")
631
bucket = _helpers.retry_429_503(storage_client.create_bucket)(bucket_name)
632
buckets_to_delete.append(bucket)
@@ -679,6 +679,8 @@ def test_bucket_w_retention_period(
679
assert not other.temporary_hold
680
assert other.retention_expiration_time is None
681
682
+ # Object can be deleted once it reaches the age defined in the retention policy.
683
+ _helpers.await_config_changes_propagate(sec=period_secs)
684
other.delete()
685
blobs_to_delete.pop()
686
0 commit comments