mediamtx/internal/conf/env
Eng Zer Jun f335fc67f9
test: use t.Setenv to set env vars in tests (#2722)
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-11-20 17:34:56 +01:00
..
env_test.go test: use t.Setenv to set env vars in tests (#2722) 2023-11-20 17:34:56 +01:00
env.go fix crash when setting deprecated settings with environment (#2529) (#2550) 2023-10-23 20:07:28 +02:00