1
0
mirror of https://github.com/moby/moby.git synced 2025-12-04 19:23:06 +03:00
Files
moby/integration-cli/docker_cli_run_unix_test.go
Eng Zer Jun 36049a04d2 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-04-23 17:44:16 +08:00

55 KiB