From 598c12c748c787403e45c591771f755aee3a767d Mon Sep 17 00:00:00 2001 From: hongweiliu17 <34546888+hongweiliu17@users.noreply.github.com> Date: Mon, 25 Dec 2023 16:45:07 +0800 Subject: [PATCH] fix(RHTAPBUGS-980): increase timeout and internal in NBE case (#980) * increasee timeout and integration when checking DLC phase in namespace-backed-environment Signed-off-by: Hongwei Liu --- tests/integration-service/namespace-backed-environments.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration-service/namespace-backed-environments.go b/tests/integration-service/namespace-backed-environments.go index 42656cd32..fb08da3d6 100644 --- a/tests/integration-service/namespace-backed-environments.go +++ b/tests/integration-service/namespace-backed-environments.go @@ -121,6 +121,9 @@ var _ = framework.IntegrationServiceSuiteDescribe("Namespace-backed Environment It("checks for deploymentTargetClaim after Ephemeral env has been created", func() { Eventually(func() error { dtcl, err = f.AsKubeDeveloper.GitOpsController.GetDeploymentTargetClaimsList(testNamespace) + if err != nil { + return fmt.Errorf("failed to find deploymentTargetClaim: %w", err) + } Expect(err).ToNot(HaveOccurred()) if len(dtcl.Items) == 0 { return fmt.Errorf("no DeploymentTargetClaim is found") @@ -131,8 +134,8 @@ var _ = framework.IntegrationServiceSuiteDescribe("Namespace-backed Environment if dtcl.Items[0].Spec.DeploymentTargetClassName == "" { return fmt.Errorf("deploymentTargetClassName field within deploymentTargetClaim is empty") } - return err - }, time.Minute*1, time.Second*1).Should(Succeed(), fmt.Sprintf("timed out checking DeploymentTargetClaim after Ephemeral Environment %s was created ", ephemeralEnvironment.Name)) + return nil + }, time.Minute*3, time.Second*5).Should(BeNil(), fmt.Sprintf("timed out checking DeploymentTargetClaim after Ephemeral Environment %s was created ", ephemeralEnvironment.Name)) })