Skip to content

Commit

Permalink
This should pass
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmoisey committed Jan 26, 2025
1 parent a730b44 commit e20dda3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vertical-pod-autoscaler/pkg/recommender/model/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type ResourcesAsResourceListTestCase struct {
}

func TestResourcesAsResourceList(t *testing.T) {
memory, _ := resource.ParseQuantity("2.66")
testCases := []ResourcesAsResourceListTestCase{
{
name: "basic resources without humanize",
Expand Down Expand Up @@ -100,9 +101,10 @@ func TestResourcesAsResourceList(t *testing.T) {
ResourceMemory: 2852574758, // 2.66Gi
},
humanize: true,

resourceList: apiv1.ResourceList{
apiv1.ResourceCPU: *resource.NewMilliQuantity(1000, resource.DecimalSI),
apiv1.ResourceMemory: resource.MustParse("2.66Gi"),
apiv1.ResourceMemory: memory,
},
},
}
Expand Down

0 comments on commit e20dda3

Please sign in to comment.