Remove defer
Replace it with ginkgo.DeferCleanup
This commit is contained in:
@@ -144,7 +144,7 @@ var _ = utils.SIGDescribe("CSI Mock selinux on mount", func() {
|
|||||||
enableSELinuxMount: &t.csiDriverSELinuxEnabled,
|
enableSELinuxMount: &t.csiDriverSELinuxEnabled,
|
||||||
hooks: createSELinuxMountPreHook(&nodeStageMountOpts, &nodePublishMountOpts, &stageCalls, &unstageCalls, &publishCalls, &unpublishCalls),
|
hooks: createSELinuxMountPreHook(&nodeStageMountOpts, &nodePublishMountOpts, &stageCalls, &unstageCalls, &publishCalls, &unpublishCalls),
|
||||||
})
|
})
|
||||||
defer m.cleanup(ctx)
|
ginkgo.DeferCleanup(m.cleanup)
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
ginkgo.By("Starting the initial pod")
|
ginkgo.By("Starting the initial pod")
|
||||||
|
Reference in New Issue
Block a user