From 5eb83b7f7c56b1d00e7785762ccb049d08ba60b2 Mon Sep 17 00:00:00 2001 From: vportella Date: Thu, 22 Aug 2024 11:38:13 +1000 Subject: [PATCH] fix linting issue --- .../cyclenoderequest/transitioner/transitions_pending_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/controller/cyclenoderequest/transitioner/transitions_pending_test.go b/pkg/controller/cyclenoderequest/transitioner/transitions_pending_test.go index f7f2eaf..f44231f 100644 --- a/pkg/controller/cyclenoderequest/transitioner/transitions_pending_test.go +++ b/pkg/controller/cyclenoderequest/transitioner/transitions_pending_test.go @@ -524,10 +524,12 @@ func TestPendingTimeoutReached(t *testing.T) { assert.Equal(t, v1.CycleNodeRequestPending, cnr.Status.Phase) // Keep the node detached - fakeTransitioner.Autoscaling.DetachInstances(&autoscaling.DetachInstancesInput{ + _, err = fakeTransitioner.Autoscaling.DetachInstances(&autoscaling.DetachInstancesInput{ InstanceIds: aws.StringSlice([]string{nodegroup[0].InstanceID}), }) + assert.NoError(t, err) + output, err = fakeTransitioner.Autoscaling.DescribeAutoScalingGroups(&autoscaling.DescribeAutoScalingGroupsInput{}) assert.NoError(t, err) assert.Equal(t, 1, len(output.AutoScalingGroups))