pulumi/tests/integration/policy
Eng Zer Jun 19d84ef1f3
test: use `T.Setenv` to set env vars in tests (#10234)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-07-24 10:41:44 +01:00
..
policy_pack_w_config Use ESlint instead of TSlint (#7719) 2021-08-10 11:31:59 -07:00
policy_pack_wo_config Fix policy integration test dependencies (#4228) 2020-03-29 17:55:08 -07:00
policy_test.go test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00