From 3491a18b7481e688246669ff5b1ef6bafd5303a8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 3 Aug 2016 22:54:59 +0800 Subject: [PATCH] fix creating pod from file failure in scheduler-predicates --- test/e2e/scheduler_predicates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/scheduler_predicates.go b/test/e2e/scheduler_predicates.go index dc5f2f82e21..2390fd7dbbf 100644 --- a/test/e2e/scheduler_predicates.go +++ b/test/e2e/scheduler_predicates.go @@ -696,7 +696,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() { By("Trying to launch a pod that with NodeAffinity setting as embedded JSON string in the annotation value.") labelPodName := "with-labels" - testPodPath := string(framework.ReadOrDie("test/e2e/testing-manifests/node-selection/pod-with-node-affinity.yaml")) + testPodPath := "test/e2e/testing-manifests/node-selection/pod-with-node-affinity.yaml" framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns)) // check that pod got scheduled. We intentionally DO NOT check that the @@ -1211,7 +1211,7 @@ var _ = framework.KubeDescribe("SchedulerPredicates [Serial]", func() { By("Trying to launch a pod that with PodAffinity & PodAntiAffinity setting as embedded JSON string in the annotation value.") labelPodName := "with-newlabels" - testPodPath := string(framework.ReadOrDie("test/e2e/testing-manifests/node-selection/pos-with-node-affinity.yaml")) + testPodPath := "test/e2e/testing-manifests/node-selection/pod-with-pod-affinity.yaml" framework.RunKubectlOrDie("create", "-f", testPodPath, fmt.Sprintf("--namespace=%v", ns)) // check that pod got scheduled. We intentionally DO NOT check that the