Skip to content

Commit e2bf630

Browse files
authored
Merge pull request kubernetes#128598 from AnishShah/fix-ippr-test
[FG:InPlacePodVerticalScaling] fix InPlacePodVerticalScaling e2e tests
2 parents 48c65d1 + 5dbb793 commit e2bf630

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/e2e/node/pod_resize.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ func doPodResizeAdmissionPluginsTests() {
110110
}
111111

112112
for _, tc := range testcases {
113-
ginkgo.It(tc.name, func(ctx context.Context) {
114-
f := framework.NewDefaultFramework(tc.name)
113+
f := framework.NewDefaultFramework(tc.name)
115114

115+
ginkgo.It(tc.name, func(ctx context.Context) {
116116
containers := []e2epod.ResizableContainerInfo{
117117
{
118118
Name: "c1",
@@ -369,8 +369,9 @@ var _ = SIGDescribe(framework.WithSerial(), "Pod InPlace Resize Container (sched
369369
})
370370

371371
var _ = SIGDescribe("Pod InPlace Resize Container", feature.InPlacePodVerticalScaling, func() {
372+
f := framework.NewDefaultFramework("pod-resize-tests")
373+
372374
ginkgo.BeforeEach(func(ctx context.Context) {
373-
f := framework.NewDefaultFramework("pod-resize-tests")
374375
node, err := e2enode.GetRandomReadySchedulableNode(ctx, f.ClientSet)
375376
framework.ExpectNoError(err)
376377
if framework.NodeOSDistroIs("windows") || e2enode.IsARM64(node) {

0 commit comments

Comments
 (0)