Skip to content

Commit

Permalink
fix(RHTAPBUGS-980): increase timeout and internal in NBE case (#980)
Browse files Browse the repository at this point in the history
* increasee timeout and integration when checking DLC phase
  in namespace-backed-environment

Signed-off-by: Hongwei Liu <[email protected]>
  • Loading branch information
hongweiliu17 authored Dec 25, 2023
1 parent 442c70c commit 598c12c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/integration-service/namespace-backed-environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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))

})

Expand Down

0 comments on commit 598c12c

Please sign in to comment.