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.
This commit is contained in:
Jan Safranek 2019-09-02 17:49:13 +02:00
parent b327a729c5
commit 1e602caea0

View File

@ -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,
},
},