From 501ec35a5f63877583ffd2b6200bfcb44b7bce54 Mon Sep 17 00:00:00 2001 From: torredil Date: Tue, 22 Oct 2024 10:37:08 +0000 Subject: [PATCH] Update context in cleanup func for e2e test Signed-off-by: torredil --- test/e2e/storage/pvc_storageclass.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/storage/pvc_storageclass.go b/test/e2e/storage/pvc_storageclass.go index fd513492fbf..aa7ee34d89d 100644 --- a/test/e2e/storage/pvc_storageclass.go +++ b/test/e2e/storage/pvc_storageclass.go @@ -73,7 +73,7 @@ var _ = utils.SIGDescribe("Retroactive StorageClass Assignment", func() { // Create a PVC with nil StorageClass pvc := createPVC(ctx, client, namespace) - ginkgo.DeferCleanup(func(cleanupContext context.Context) { + ginkgo.DeferCleanup(func(ctx context.Context) { err := client.CoreV1().PersistentVolumeClaims(namespace).Delete(ctx, pvc.Name, *metav1.NewDeleteOptions(0)) framework.ExpectNoError(err, "Error deleting PVC") })