From fba2d2fadc13098ed20e91e05f424fa4e5582f67 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Tue, 31 Oct 2023 17:46:53 +0100 Subject: [PATCH] Move invocation to not to cause ginkgo panic --- test/e2e/kubectl/rollout.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/kubectl/rollout.go b/test/e2e/kubectl/rollout.go index fe4c296b0e0..0612a590b63 100644 --- a/test/e2e/kubectl/rollout.go +++ b/test/e2e/kubectl/rollout.go @@ -39,6 +39,7 @@ import ( var _ = SIGDescribe("Kubectl rollout", func() { defer ginkgo.GinkgoRecover() + var deploymentYaml string f := framework.NewDefaultFramework("kubectl-rollout") f.NamespacePodSecurityLevel = admissionapi.LevelBaseline @@ -47,10 +48,10 @@ var _ = SIGDescribe("Kubectl rollout", func() { ginkgo.BeforeEach(func() { c = f.ClientSet ns = f.Namespace.Name + deploymentYaml = commonutils.SubstituteImageName(string(readTestFileOrDie(httpdDeployment1Filename))) }) ginkgo.Describe("undo", func() { - deploymentYaml := commonutils.SubstituteImageName(string(readTestFileOrDie(httpdDeployment1Filename))) ginkgo.AfterEach(func() { cleanupKubectlInputs(deploymentYaml, ns, "app=httpd") })