diff --git a/test/suites/nodeclaim/garbage_collection_test.go b/test/suites/nodeclaim/garbage_collection_test.go index b6e4e1b0e2ec..5297d4fbd8a9 100644 --- a/test/suites/nodeclaim/garbage_collection_test.go +++ b/test/suites/nodeclaim/garbage_collection_test.go @@ -98,7 +98,7 @@ var _ = Describe("GarbageCollection", func() { instanceProfileName := fmt.Sprintf("KarpenterNodeInstanceProfile-%s", env.ClusterName) ExpectInstanceProfileCreated(instanceProfileName) DeferCleanup(func() { - defer ExpectInstanceProfileDeleted(instanceProfileName) + ExpectInstanceProfileDeleted(instanceProfileName) }) // Create an instance manually to mock Karpenter launching an instance out := env.EventuallyExpectRunInstances(instanceInput)