Skip to content

Commit fccafef

Browse files
committed
Add non-nil instanceprofile when error is not returned from test
Signed-off-by: Jonah Back <[email protected]>
1 parent f994628 commit fccafef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/provisioners/eks/create_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ func TestCreateManagedRoleNegative(t *testing.T) {
264264
g.Expect(ctx.GetState()).To(gomega.Equal(v1alpha1.ReconcileModifying))
265265
iamMock.WaitUntilInstanceProfileExistsErr = nil
266266
iamMock.CreateInstanceProfileErr = nil
267+
iamMock.InstanceProfile = &iam.InstanceProfile{}
267268

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

0 commit comments

Comments
 (0)