Skip to content

Commit 7e8dfe4

Browse files
authored
test: reset values after test (#585)
1 parent 47a25bf commit 7e8dfe4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/pr_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ func TestPlanValidation(t *testing.T) {
218218
output, err := terraform.PlanE(t, options.TerraformOptions)
219219
assert.Nil(t, err, "This should not have errored")
220220
assert.NotNil(t, output, "Expected some output")
221+
// Delete the keys from the map
222+
for key := range tfVars {
223+
delete(options.TerraformOptions.Vars, key)
224+
}
221225
})
222226
}
223227
}

0 commit comments

Comments
 (0)