milvus/internal/config
Eng Zer Jun 438790744d
test: use T.Setenv to set env vars in tests (#19649)
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>
2022-10-11 18:43:23 +08:00
..
config_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
config.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00
env_source.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00
etcd_source.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00
event.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00
file_source.go improve logs to debug growing segment load failed (#19419) 2022-09-26 17:36:54 +08:00
manager_test.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00
manager.go add user special kafka config (#18742) 2022-08-25 11:02:53 +08:00
source_test.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00
source.go config from etcd (#18421) 2022-08-01 10:04:33 +08:00