SIGN IN SIGN UP

test: use `t.Setenv` to set env vars

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>
E
Eng Zer Jun committed
f741f5b29cfde042f673fdc3b21f68c706094daf
Parent: 9dd48dd