We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3531c9 commit 9426e3eCopy full SHA for 9426e3e
tests/pr_test.go
@@ -307,9 +307,11 @@ func TestDeployCEProjectDA(t *testing.T) {
307
308
tfvarsPath := tempTerraformDir + "/solutions/project/terraform.auto.tfvars"
309
writeTfvarsFile(t, tfvarsPath, tfVars)
310
- if err := os.Remove(tfvarsPath); err != nil {
311
- log.Printf("Warning: failed to remove %s: %v\n", tfvarsPath, err)
312
- }
+ defer func() {
+ if err := os.Remove(tfvarsPath); err != nil {
+ fmt.Printf("Warning: failed to remove %s: %v\n", tfvarsPath, err)
313
+ }
314
+ }()
315
316
options := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
317
TerraformDir: tempTerraformDir + "/solutions/project",
0 commit comments