mirror of
https://github.com/moby/moby.git
synced 2025-12-04 19:23:06 +03:00
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>
55 KiB
55 KiB