packer/acctest
Eng Zer Jun f5ec0f1c57 test: use T.Setenv to set env vars in tests
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-09-20 14:54:20 -04:00
..
plugin Onboard to CRT (#11564) 2022-02-25 15:56:20 -08:00
testing.go move acctest pkg from sdk to core and update acceptance tests 2021-04-07 11:52:19 +02:00
testing_test.go test: use T.Setenv to set env vars in tests 2022-09-20 14:54:20 -04:00