From 395bea9d83921768365f602132da77c5771b380d Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Fri, 2 Mar 2018 10:00:03 -0800 Subject: [PATCH] increase amount of memory filled by memory allocatable eviction test --- test/e2e_node/eviction_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e_node/eviction_test.go b/test/e2e_node/eviction_test.go index 999eb7a207..b0de88572f 100644 --- a/test/e2e_node/eviction_test.go +++ b/test/e2e_node/eviction_test.go @@ -131,8 +131,8 @@ var _ = framework.KubeDescribe("MemoryAllocatableEviction [Slow] [Serial] [Disru // Set large system and kube reserved values to trigger allocatable thresholds far before hard eviction thresholds. kubeReserved := getNodeCPUAndMemoryCapacity(f)[v1.ResourceMemory] // The default hard eviction threshold is 250Mb, so Allocatable = Capacity - Reserved - 250Mb - // We want Allocatable = 50Mb, so set Reserved = Capacity - Allocatable - 250Mb = Capacity - 300Mb - kubeReserved.Sub(resource.MustParse("300Mi")) + // We want Allocatable = 150Mb, so set Reserved = Capacity - Allocatable - 250Mb = Capacity - 400Mb + kubeReserved.Sub(resource.MustParse("400Mi")) initialConfig.KubeReserved = map[string]string{ string(v1.ResourceMemory): kubeReserved.String(), }