From d3d5f888804d7798631c99094543029253fb6ef9 Mon Sep 17 00:00:00 2001 From: gmarek Date: Thu, 18 Aug 2016 13:41:17 +0200 Subject: [PATCH] Make sure that provider is set when we create resource constraints in the density test --- test/e2e/density.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/density.go b/test/e2e/density.go index 84ca77b25f106..49a0d8966b0b6 100644 --- a/test/e2e/density.go +++ b/test/e2e/density.go @@ -448,7 +448,6 @@ var _ = framework.KubeDescribe("Density", func() { switch testArg.podsPerNode { case 30: name = "[Feature:Performance] " + name - f.AddonResourceConstraints = func() map[string]framework.ResourceConstraint { return density30AddonResourceVerifier(nodeCount) }() case 95: name = "[Feature:HighDensityPerformance]" + name default: @@ -457,6 +456,9 @@ var _ = framework.KubeDescribe("Density", func() { itArg := testArg It(name, func() { podsPerNode := itArg.podsPerNode + if podsPerNode == 30 { + f.AddonResourceConstraints = func() map[string]framework.ResourceConstraint { return density30AddonResourceVerifier(nodeCount) }() + } totalPods = podsPerNode * nodeCount fileHndl, err := os.Create(fmt.Sprintf(framework.TestContext.OutputDir+"/%s/pod_states.csv", uuid)) framework.ExpectNoError(err)