Skip to content

Commit

Permalink
wait for CAPI to react in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Jun 14, 2024
1 parent 7ac6499 commit 9cad23f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions magnum_cluster_api/tests/functional/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def test_upgrade_cluster(self, context, ubuntu_driver, cluster_template):
context, self.cluster, cluster_template, None, None
)

cluster_resource.wait_for_observed_generation_changed(
existing_observed_generation=current_observed_generation,
)

cluster_resource = objects.Cluster.for_magnum_cluster(self.api, self.cluster)
assert cluster_resource.observed_generation != current_observed_generation

Expand Down

0 comments on commit 9cad23f

Please sign in to comment.