mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Remove defer
Replace it with ginkgo.DeferCleanup
This commit is contained in:
parent
03beb014f9
commit
de4ce7b58c
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user