From de4ce7b58ca771c95cf7f7a44394c2dbe94498f1 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 17 Jan 2023 11:21:44 +0100 Subject: [PATCH] Remove defer Replace it with ginkgo.DeferCleanup --- test/e2e/storage/csi_mock/csi_selinux_mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/storage/csi_mock/csi_selinux_mount.go b/test/e2e/storage/csi_mock/csi_selinux_mount.go index 297dd09b06a..fdbcee979d0 100644 --- a/test/e2e/storage/csi_mock/csi_selinux_mount.go +++ b/test/e2e/storage/csi_mock/csi_selinux_mount.go @@ -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")