mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Update context in cleanup func for e2e test
Signed-off-by: torredil <torredil@amazon.com>
This commit is contained in:
parent
81ce66f059
commit
501ec35a5f
@ -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")
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user