Skip to content

Commit

Permalink
Add non-nil instanceprofile when error is not returned from test
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Back <[email protected]>
  • Loading branch information
backjo committed May 24, 2022
1 parent f994628 commit fccafef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/provisioners/eks/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func TestCreateManagedRoleNegative(t *testing.T) {
g.Expect(ctx.GetState()).To(gomega.Equal(v1alpha1.ReconcileModifying))
iamMock.WaitUntilInstanceProfileExistsErr = nil
iamMock.CreateInstanceProfileErr = nil
iamMock.InstanceProfile = &iam.InstanceProfile{}

iamMock.AddRoleToInstanceProfileErr = awserr.New(iam.ErrCodeNoSuchEntityException, "", errors.New("some-error"))
err = ctx.Create()
Expand Down

0 comments on commit fccafef

Please sign in to comment.