Skip to content

Commit

Permalink
Fix test name
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationD committed Jun 4, 2024
1 parent e023939 commit 4456800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/examples_complete-worker-ec2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ func copyFileContentsCompleteWorkerEc2(src, dst string) (err error) {
return
}

func cleanupExamplesCompleteWorkerEc2(t *testing.T, terraformOptions *terraform.Options, tempTestFolder string) {
func cleanupExamplesWorkerEc2(t *testing.T, terraformOptions *terraform.Options, tempTestFolder string) {
terraform.Destroy(t, terraformOptions)
os.RemoveAll(tempTestFolder)
}

// Test the Terraform module in examples/complete using Terratest.
func TestExamplesCompleteWorkerEc2(t *testing.T) {
func TestExamplesWorkerEc2(t *testing.T) {
t.Parallel()
// randID := strings.ToLower(random.UniqueId())
// attributes := []string{randID}
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestExamplesCompleteWorkerEc2(t *testing.T) {
}

// At the end of the test, run `terraform destroy` to clean up any resources that were created
defer cleanupExamplesCompleteWorkerEc2(t, terraformOptions, tempTestFolder)
defer cleanupExamplesWorkerEc2(t, terraformOptions, tempTestFolder)

// This will run `terraform init` and `terraform apply` and fail the test if there are any errors
terraform.InitAndApply(t, terraformOptions)
Expand Down

0 comments on commit 4456800

Please sign in to comment.