Skip to content

Commit 4cd4a04

Browse files
authored
tests: ensure test runs after reaching retention period (#911)
1 parent c774ad5 commit 4cd4a04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/system/test_bucket.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def test_bucket_w_retention_period(
626626
buckets_to_delete,
627627
blobs_to_delete,
628628
):
629-
period_secs = 10
629+
period_secs = 3
630630
bucket_name = _helpers.unique_name("w-retention-period")
631631
bucket = _helpers.retry_429_503(storage_client.create_bucket)(bucket_name)
632632
buckets_to_delete.append(bucket)
@@ -679,6 +679,8 @@ def test_bucket_w_retention_period(
679679
assert not other.temporary_hold
680680
assert other.retention_expiration_time is None
681681

682+
# Object can be deleted once it reaches the age defined in the retention policy.
683+
_helpers.await_config_changes_propagate(sec=period_secs)
682684
other.delete()
683685
blobs_to_delete.pop()
684686

0 commit comments

Comments
 (0)