Skip to content

Commit 680d8e5

Browse files
authored
fix: wait for resource sync on adoption test (#161)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 375fc38 commit 680d8e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/tests/test_bucket_adoption_policy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,9 @@ def test_adoption_update_tags(
217217

218218
k8s.patch_custom_resource(ref, updates)
219219
time.sleep(MODIFY_WAIT_AFTER_SECONDS)
220+
k8s.wait_on_condition(ref, "ACK.ResourceSynced", "True", wait_periods=5)
220221

221-
cr = k8s.wait_resource_consumed_by_controller(ref)
222+
cr = k8s.get_resource(ref)
222223
assert cr is not None
223224
assert 'spec' in cr
224225
assert 'tagging' in cr['spec']

0 commit comments

Comments
 (0)