Skip to content

Commit 9ecd1c3

Browse files
authored
chore(test): fix hotplug cvi deletion (#1034)
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
1 parent a9f428f commit 9ecd1c3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/e2e/image_hotplug_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ var _ = Describe("Image hotplug", ginkgoutil.CommonE2ETestDecorators(), func() {
154154
ns, err := kustomize.GetNamespace(kustomization)
155155
Expect(err).NotTo(HaveOccurred(), "%w", err)
156156
conf.SetNamespace(ns)
157+
158+
res := kubectl.Delete(kc.DeleteOptions{
159+
IgnoreNotFound: true,
160+
Labels: testCaseLabel,
161+
Resource: kc.ResourceCVI,
162+
})
163+
Expect(res.Error()).NotTo(HaveOccurred())
157164
})
158165

159166
Context("When the virtualization resources are applied", func() {

0 commit comments

Comments
 (0)