Skip to content

Commit

Permalink
Update vertical-pod-autoscaler/pkg/admission-controller/resource/pod/…
Browse files Browse the repository at this point in the history
…recommendation/recommendation_provider_test.go

Co-authored-by: Joachim <[email protected]>
  • Loading branch information
dbenque and jbartosik committed Aug 28, 2023
1 parent 07c6996 commit 0a58d28
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,7 @@ func TestUpdateResourceRequests(t *testing.T) {
return
}

_, foundEmpty := resources[0].Requests[""]
assert.Equal(t, foundEmpty, false, "empty resourceKey have not been purged")
assert.Contains(t, resources, "", "expected empty resource to be removed")

cpuRequest := resources[0].Requests[apiv1.ResourceCPU]
assert.Equal(t, tc.expectedCPU.Value(), cpuRequest.Value(), "cpu request doesn't match")
Expand Down

0 comments on commit 0a58d28

Please sign in to comment.