Update context in cleanup func for e2e test

Signed-off-by: torredil <torredil@amazon.com>
This commit is contained in:
torredil 2024-10-22 10:37:08 +00:00
parent 81ce66f059
commit 501ec35a5f
No known key found for this signature in database

View File

@ -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")
})