pulumi/pkg/codegen/testing
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
..
test test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00
tstypes ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
utils [schema] Faster schema loading via caching alongside plugins (#9686) 2022-06-13 23:27:11 -07:00