Skip to content

Commit

Permalink
Modify capping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sibucan committed Sep 17, 2021
1 parent 538b467 commit fd0b01a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vertical-pod-autoscaler/pkg/utils/vpa/capping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func TestApplyCapsToLimitRange(t *testing.T) {
ContainerName: "container",
Target: apiv1.ResourceList{
apiv1.ResourceCPU: resource.MustParse("1000m"),
apiv1.ResourceMemory: resource.MustParse("500000000000m"),
apiv1.ResourceMemory: resource.MustParse("500000000"),
},
},
},
Expand Down Expand Up @@ -895,13 +895,13 @@ func TestCapPodMemoryWithUnderByteSplit(t *testing.T) {
{
ContainerName: "container-1",
Target: apiv1.ResourceList{
apiv1.ResourceMemory: *resource.NewQuantity(1431655766, resource.BinarySI),
apiv1.ResourceMemory: *resource.NewQuantity(1431655765, resource.BinarySI),
},
},
{
ContainerName: "container-2",
Target: apiv1.ResourceList{
apiv1.ResourceMemory: *resource.NewQuantity(2863311531, resource.BinarySI),
apiv1.ResourceMemory: *resource.NewQuantity(2863311530, resource.BinarySI),
},
},
},
Expand Down

0 comments on commit fd0b01a

Please sign in to comment.