Remove defer

Replace it with ginkgo.DeferCleanup
This commit is contained in:
Jan Safranek 2023-01-17 11:21:44 +01:00
parent 03beb014f9
commit de4ce7b58c

View File

@ -144,7 +144,7 @@ var _ = utils.SIGDescribe("CSI Mock selinux on mount", func() {
enableSELinuxMount: &t.csiDriverSELinuxEnabled,
hooks: createSELinuxMountPreHook(&nodeStageMountOpts, &nodePublishMountOpts, &stageCalls, &unstageCalls, &publishCalls, &unpublishCalls),
})
defer m.cleanup(ctx)
ginkgo.DeferCleanup(m.cleanup)
// Act
ginkgo.By("Starting the initial pod")