From 5fa651550995cc4d3be7eff0ca2b39d2e9e35ab5 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Wed, 1 Mar 2017 09:57:17 -0800 Subject: [PATCH] critial pod test uses allocatable instead of capacity --- test/e2e_node/critical_pod_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/critical_pod_test.go b/test/e2e_node/critical_pod_test.go index 8df6f4efe66..bdbbdadc8dd 100644 --- a/test/e2e_node/critical_pod_test.go +++ b/test/e2e_node/critical_pod_test.go @@ -111,7 +111,7 @@ func getNodeCPUAndMemoryCapacity(f *framework.Framework) v1.ResourceList { framework.ExpectNoError(err) // Assuming that there is only one node, because this is a node e2e test. Expect(len(nodeList.Items)).To(Equal(1)) - capacity := nodeList.Items[0].Status.Capacity + capacity := nodeList.Items[0].Status.Allocatable return v1.ResourceList{ v1.ResourceCPU: capacity[v1.ResourceCPU], v1.ResourceMemory: capacity[v1.ResourceMemory],