Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
chore: reuse timeout factor from common
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed May 4, 2021
1 parent eb30ca2 commit bf00068
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions e2e/_suites/helm/helm_charts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ var elasticAPMActive = false

var helmManager helm.Manager

// timeoutFactor a multiplier for the max timeout when doing backoff retries.
// It can be overriden by TIMEOUT_FACTOR env var
var timeoutFactor = 2

//nolint:unused
var kubectlClient kubectl.Kubectl

Expand Down Expand Up @@ -80,7 +76,6 @@ func setupSuite() {
helmVersion = shell.GetEnv("HELM_VERSION", helmVersion)
helmChartVersion = shell.GetEnv("HELM_CHART_VERSION", helmChartVersion)
kubernetesVersion = shell.GetEnv("KUBERNETES_VERSION", kubernetesVersion)
timeoutFactor = shell.GetEnvInteger("TIMEOUT_FACTOR", timeoutFactor)

stackVersion = shell.GetEnv("STACK_VERSION", stackVersion)
v, err := utils.GetElasticArtifactVersion(stackVersion)
Expand Down Expand Up @@ -187,7 +182,7 @@ func (ts *HelmChartTestSuite) aResourceWillExposePods(resourceType string) error
return err
}

maxTimeout := time.Duration(timeoutFactor) * time.Minute
maxTimeout := time.Duration(common.TimeoutFactor) * time.Minute

exp := common.GetExponentialBackOff(maxTimeout)
retryCount := 1
Expand Down

0 comments on commit bf00068

Please sign in to comment.