Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/e2e/tests/test_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ def test_disallow_default_security_group_rule(self, ec2_client, simple_vpc):
(ref, cr) = simple_vpc
resource_id = cr["status"]["vpcID"]

time.sleep(CREATE_WAIT_AFTER_SECONDS)
# Wait for the controller to finish reconciling (SG rule deletion
# happens inline during creation but the controller may be busy)
Comment on lines +252 to +253
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I don't think this is true anymore after you previous PR.

Suggested change
# Wait for the controller to finish reconciling (SG rule deletion
# happens inline during creation but the controller may be busy)
# Wait for the controller to finish reconciling (SG rule deletion
# happens in update path after initial creation)

assert k8s.wait_on_condition(ref, "ACK.ResourceSynced", "True", wait_periods=5)

# Check VPC exists in AWS
ec2_validator = EC2Validator(ec2_client)
Expand Down