Skip to content

Commit 6606d8f

Browse files
committed
Suppress test error computing output during Terraform destroy
1 parent 17240b6 commit 6606d8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/src/examples_complete_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ func TestExamplesComplete(t *testing.T) {
1414
terraformOptions := &terraform.Options{
1515
// The path to where our Terraform code is located
1616
TerraformDir: "../../examples/complete",
17+
// Suppress errors if there is a problem computing outputs during destroy
18+
EnvVars: map[string]string{"TF_WARN_OUTPUT_ERRORS": "1"},
1719
Upgrade: true,
1820
// Variables to pass to our Terraform code using -var-file options
1921
VarFiles: []string{"fixtures.us-east-2.tfvars"},

0 commit comments

Comments
 (0)