@@ -599,7 +599,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
599599 MixedInstancesPolicy : awsMachinePool .Spec .MixedInstancesPolicy .DeepCopy (),
600600 }, nil
601601 })
602- asgSvc .EXPECT ().DescribeLifecycleHooks (gomock .Any ())
602+ asgSvc .EXPECT ().DescribeLifecycleHooks (gomock .Any ()). Return ( nil , nil )
603603 asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {"subnet-1" }, nil ) // no change
604604 // No changes, so there must not be an ASG update!
605605 asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
@@ -656,7 +656,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
656656 MixedInstancesPolicy : awsMachinePool .Spec .MixedInstancesPolicy .DeepCopy (),
657657 }, nil
658658 })
659- asgSvc .EXPECT ().DescribeLifecycleHooks (gomock .Any ())
659+ asgSvc .EXPECT ().DescribeLifecycleHooks (gomock .Any ()). Return ( nil , nil )
660660 asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {"subnet-1" }, nil ) // no change
661661 // No changes, so there must not be an ASG update!
662662 asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
@@ -741,7 +741,7 @@ func TestAWSMachinePoolReconciler(t *testing.T) {
741741 MixedInstancesPolicy : awsMachinePool .Spec .MixedInstancesPolicy .DeepCopy (),
742742 }, nil
743743 })
744- asgSvc .EXPECT ().DescribeLifecycleHooks (gomock .Any ())
744+ asgSvc .EXPECT ().DescribeLifecycleHooks (gomock .Any ()). Return ( nil , nil )
745745 asgSvc .EXPECT ().SubnetIDs (gomock .Any ()).Return ([]string {"subnet-1" }, nil ) // no change
746746 // No changes, so there must not be an ASG update!
747747 asgSvc .EXPECT ().UpdateASG (gomock .Any ()).Times (0 )
0 commit comments