Skip to content

Commit 1e602ca

Browse files
committed
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.
1 parent b327a72 commit 1e602ca

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/e2e/storage/empty_dir_wrapper.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"strconv"
2222

2323
v1 "k8s.io/api/core/v1"
24-
"k8s.io/apimachinery/pkg/api/resource"
2524
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2625
"k8s.io/apimachinery/pkg/util/intstr"
2726
"k8s.io/apimachinery/pkg/util/uuid"
@@ -387,14 +386,8 @@ func testNoWrappedVolumeRace(f *framework.Framework, volumes []v1.Volume, volume
387386
Spec: v1.PodSpec{
388387
Containers: []v1.Container{
389388
{
390-
Name: "test-container",
391-
Image: imageutils.GetE2EImage(imageutils.BusyBox),
392-
Command: []string{"sleep", "10000"},
393-
Resources: v1.ResourceRequirements{
394-
Requests: v1.ResourceList{
395-
v1.ResourceCPU: resource.MustParse("10m"),
396-
},
397-
},
389+
Name: "test-container",
390+
Image: imageutils.GetE2EImage(imageutils.Pause),
398391
VolumeMounts: volumeMounts,
399392
},
400393
},

0 commit comments

Comments
 (0)