grafana/pkg/cmd
Eng Zer Jun cf1945d0c3
Tests: use t.Setenv to set env vars (#69516)
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>
2023-06-05 11:31:03 +02:00
..
grafana Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
grafana-cli Plugins: Refactor plugin repository API (#69063) 2023-05-30 11:48:52 +02:00
grafana-server Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00