Skip to content

Commit de071fa

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored andcommitted
test: fix pv deletion verification failure in driver restart case
1 parent 1d47d2a commit de071fa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/e2e/testsuites/dynamically_provisioned_restart_driver_tester.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ func (t *DynamicallyProvisionedRestartDriverTest) Run(ctx context.Context, clien
4646
defer wg.Done()
4747
defer ginkgo.GinkgoRecover()
4848

49-
tDeployment, cleanup, _ := t.Pod.SetupDeployment(ctx, client, namespace, t.CSIDriver, t.StorageClassParameters)
50-
// defer must be called here for resources not get removed before using them
51-
for i := range cleanup {
52-
defer cleanup[i](ctx)
53-
}
49+
tDeployment, _, _ := t.Pod.SetupDeployment(ctx, client, namespace, t.CSIDriver, t.StorageClassParameters)
5450

5551
ginkgo.By("creating the deployment for the pod")
5652
tDeployment.Create(ctx)

0 commit comments

Comments
 (0)