1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00
Eng Zer Jun 37894e9b28
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-12-20 13:13:01 +08:00
..
2021-12-01 00:12:55 +00:00
2022-06-03 17:09:11 +02:00
2022-06-17 15:10:37 +02:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2022-02-24 15:05:18 +01:00
2022-02-24 15:05:18 +01:00
2022-02-24 15:05:18 +01:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2021-12-22 21:54:41 +00:00
2022-07-09 02:13:44 +00:00