Skip to content

Commit 9426e3e

Browse files
author
akocbek
committed
update test
1 parent b3531c9 commit 9426e3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/pr_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,11 @@ func TestDeployCEProjectDA(t *testing.T) {
307307

308308
tfvarsPath := tempTerraformDir + "/solutions/project/terraform.auto.tfvars"
309309
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-
}
310+
defer func() {
311+
if err := os.Remove(tfvarsPath); err != nil {
312+
fmt.Printf("Warning: failed to remove %s: %v\n", tfvarsPath, err)
313+
}
314+
}()
313315

314316
options := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
315317
TerraformDir: tempTerraformDir + "/solutions/project",

0 commit comments

Comments
 (0)