milvus/internal/kv/etcd
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
..
embed_etcd_config_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
embed_etcd_kv_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
embed_etcd_kv.go Add a specific KeyNotExistError err for the metastore load interface (#18582) 2022-08-10 17:20:41 +08:00
embed_etcd_restart_test.go test: use T.Setenv to set env vars in tests (#19649) 2022-10-11 18:43:23 +08:00
etcd_kv_test.go Add metrics for etcd (#18962) 2022-09-02 17:46:59 +08:00
etcd_kv.go Refactor QueryCoord (#18836) 2022-09-15 18:48:32 +08:00
metakv_factory.go Add EtcdConfig and move PulsarConfig/RocksdbConfig/MinioConfig into BaseParamTable (#15434) 2022-02-07 10:09:45 +08:00