mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-04 23:17:45 +01:00
cd0fa06a32
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> Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> |
||
---|---|---|
.. | ||
chartserver | ||
cmd | ||
common | ||
controller | ||
core | ||
jobservice | ||
lib | ||
migration | ||
pkg | ||
portal | ||
registryctl | ||
server | ||
testing | ||
vendor | ||
.golangci.yaml | ||
favicon.ico | ||
go.mod | ||
go.sum |