diff --git a/exp/controllers/awsmachinepool_controller_test.go b/exp/controllers/awsmachinepool_controller_test.go index 4fe6cc1dfe..287ebbe7a1 100644 --- a/exp/controllers/awsmachinepool_controller_test.go +++ b/exp/controllers/awsmachinepool_controller_test.go @@ -599,7 +599,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) { MixedInstancesPolicy: awsMachinePool.Spec.MixedInstancesPolicy.DeepCopy(), }, nil }) - asgSvc.EXPECT().DescribeLifecycleHooks(gomock.Any()) + asgSvc.EXPECT().DescribeLifecycleHooks(gomock.Any()).Return(nil, nil) asgSvc.EXPECT().SubnetIDs(gomock.Any()).Return([]string{"subnet-1"}, nil) // no change // No changes, so there must not be an ASG update! asgSvc.EXPECT().UpdateASG(gomock.Any()).Times(0) @@ -656,7 +656,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) { MixedInstancesPolicy: awsMachinePool.Spec.MixedInstancesPolicy.DeepCopy(), }, nil }) - asgSvc.EXPECT().DescribeLifecycleHooks(gomock.Any()) + asgSvc.EXPECT().DescribeLifecycleHooks(gomock.Any()).Return(nil, nil) asgSvc.EXPECT().SubnetIDs(gomock.Any()).Return([]string{"subnet-1"}, nil) // no change // No changes, so there must not be an ASG update! asgSvc.EXPECT().UpdateASG(gomock.Any()).Times(0) @@ -741,7 +741,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) { MixedInstancesPolicy: awsMachinePool.Spec.MixedInstancesPolicy.DeepCopy(), }, nil }) - asgSvc.EXPECT().DescribeLifecycleHooks(gomock.Any()) + asgSvc.EXPECT().DescribeLifecycleHooks(gomock.Any()).Return(nil, nil) asgSvc.EXPECT().SubnetIDs(gomock.Any()).Return([]string{"subnet-1"}, nil) // no change // No changes, so there must not be an ASG update! asgSvc.EXPECT().UpdateASG(gomock.Any()).Times(0)