Skip to content

Commit

Permalink
remove double defer
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed Nov 7, 2023
1 parent 916d776 commit 1fa140b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/suites/nodeclaim/garbage_collection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1fa140b

Please sign in to comment.