From 1e602caea0bc2de612203ff9f46cb948b30151b6 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 2 Sep 2019 17:49:13 +0200 Subject: [PATCH] Don't require any resources in race test The race test is interested only if all volumes are mounted and pod is started, it does not need any special CPU. It de-flakes the test when running on a tight node. --- test/e2e/storage/empty_dir_wrapper.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/e2e/storage/empty_dir_wrapper.go b/test/e2e/storage/empty_dir_wrapper.go index c1f557eb070..f4609331c78 100644 --- a/test/e2e/storage/empty_dir_wrapper.go +++ b/test/e2e/storage/empty_dir_wrapper.go @@ -21,7 +21,6 @@ import ( "strconv" v1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/apimachinery/pkg/util/uuid" @@ -387,14 +386,8 @@ func testNoWrappedVolumeRace(f *framework.Framework, volumes []v1.Volume, volume Spec: v1.PodSpec{ Containers: []v1.Container{ { - Name: "test-container", - Image: imageutils.GetE2EImage(imageutils.BusyBox), - Command: []string{"sleep", "10000"}, - Resources: v1.ResourceRequirements{ - Requests: v1.ResourceList{ - v1.ResourceCPU: resource.MustParse("10m"), - }, - }, + Name: "test-container", + Image: imageutils.GetE2EImage(imageutils.Pause), VolumeMounts: volumeMounts, }, },