fleet/ee/fleetctl
Eng Zer Jun 1ab171faf3
test: use T.Setenv to set env vars in tests (#6714)
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-07-18 14:22:28 -03:00
..
updates_test.go test: use T.Setenv to set env vars in tests (#6714) 2022-07-18 14:22:28 -03:00
updates_windows.go Fix missing import on Windows (#3035) 2021-11-18 18:37:29 -08:00
updates.go Add (beta) support for Fleet Desktop to linux (#5221) 2022-05-04 11:14:12 -03:00