Skip to content

Commit

Permalink
Add more retries for entreprise test case
Browse files Browse the repository at this point in the history
For more details see hashicorp#208 and hashicorp#209
  • Loading branch information
Anouar Chattouna committed Feb 25, 2021
1 parent 34f7a20 commit 1a86c7e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/consul_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ func runConsulClusterTest(t *testing.T, packerBuildName string, examplesFolder s

func runConsulClusterTestWithVars(t *testing.T, packerBuildName string, examplesFolder string, packerTemplatePath string, sshUser string, terraformVarsMerge map[string]interface{}, enterpriseUrl string) {
// Uncomment any of the following to skip that section during the test
//os.Setenv("SKIP_setup_ami", "true")
//os.Setenv("SKIP_deploy", "true")
//os.Setenv("SKIP_validate", "true")
//os.Setenv("SKIP_teardown", "true")
// os.Setenv("SKIP_setup_ami", "true")
// os.Setenv("SKIP_deploy", "true")
// os.Setenv("SKIP_validate", "true")
// os.Setenv("SKIP_teardown", "true")

exampleFolder := test_structure.CopyTerraformFolderToTemp(t, REPO_ROOT, examplesFolder)

Expand Down Expand Up @@ -196,8 +196,7 @@ func checkEnterpriseInstall(t *testing.T, asgNameOutputVar string, terratestOpti
SshUserName: sshUser,
SshKeyPair: keyPair.KeyPair,
}

maxRetries := 10
maxRetries := 20
sleepBetweenRetries := 10 * time.Second

output := retry.DoWithRetry(t, "Check Enterprise Install", maxRetries, sleepBetweenRetries, func() (string, error) {
Expand Down

0 comments on commit 1a86c7e

Please sign in to comment.