37894e9b28
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> |
||
---|---|---|
.. | ||
binary.go | ||
common.go | ||
common_darwin.go | ||
common_freebsd.go | ||
common_linux.go | ||
common_openbsd.go | ||
common_test.go | ||
common_unix.go | ||
common_windows.go | ||
endian.go | ||
sleep.go | ||
sleep_test.go | ||
warnings.go |