Skip to content

Commit 69c97b0

Browse files
authored
Merge pull request kubernetes-sigs#4048 from Skarlso/fix-eventually-condition
Fix error condition on eventually
2 parents a3fac55 + 9552a81 commit 69c97b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/shared/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func deleteResourcesInCloudFormation(prov client.ConfigProvider, t *cfn_bootstra
450450
role := val.(*cfn_iam.Role)
451451
Eventually(func(gomega Gomega) bool {
452452
_, err := iamSvc.DeleteRole(&iam.DeleteRoleInput{RoleName: aws.String(role.RoleName)})
453-
return awserrors.IsNotFound(err) || err != nil
453+
return awserrors.IsNotFound(err) || err == nil
454454
}, 5*time.Minute, 5*time.Second).Should(BeTrue())
455455
}
456456
if val.AWSCloudFormationType() == "AWS::IAM::InstanceProfile" {

0 commit comments

Comments
 (0)