From 24f32d9d1857b83978c9be020b0a043f9b9cb934 Mon Sep 17 00:00:00 2001 From: Tomas Smetana Date: Thu, 3 Aug 2023 12:51:31 +0200 Subject: [PATCH] Local PV Stress test: don't fail on deleting missing PV --- test/e2e/storage/persistent_volumes-local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/storage/persistent_volumes-local.go b/test/e2e/storage/persistent_volumes-local.go index 3ef26f463d2..61106626375 100644 --- a/test/e2e/storage/persistent_volumes-local.go +++ b/test/e2e/storage/persistent_volumes-local.go @@ -529,7 +529,7 @@ var _ = utils.SIGDescribe("PersistentVolumes-local ", func() { continue } err = config.client.CoreV1().PersistentVolumes().Delete(backgroundCtx, pv.Name, metav1.DeleteOptions{}) - if errors.Is(err, context.Canceled) { + if apierrors.IsNotFound(err) || errors.Is(err, context.Canceled) { continue } framework.ExpectNoError(err)