Commit Graph

2 Commits

Author SHA1 Message Date
Chris Bandy
f3b9e0ddc9 Replace os.Setenv with testing.T.Setenv in tests
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.

Similarly, T.Cleanup ensures the environment is restored after a test
or any of its parallel sub-tests call os.Unsetenv.
2023-04-17 20:55:49 -05:00
wojtekt
2a7978e2be Merge migrate-if-needed etcd bash script 2020-06-22 20:45:58 +02:00