mirror of https://github.com/milvus-io/milvus.git
parent
064232e6d3
commit
fce23538a8
|
@ -56,11 +56,10 @@ func (gp *BaseTable) Init() {
|
|||
gp.configDir = gp.initConfPath()
|
||||
log.Debug("config directory", zap.String("configDir", gp.configDir))
|
||||
|
||||
gp.loadFromMilvusYaml()
|
||||
|
||||
// TODO remove once we change helm deployment
|
||||
gp.loadFromCommonYaml()
|
||||
|
||||
gp.loadFromMilvusYaml()
|
||||
|
||||
gp.tryloadFromEnv()
|
||||
|
||||
gp.InitLogCfg()
|
||||
|
|
|
@ -141,10 +141,9 @@ func TestBaseTable_ConfDir(t *testing.T) {
|
|||
baseParams.configDir = "./"
|
||||
|
||||
assert.Panics(t, func() { baseParams.loadFromMilvusYaml() })
|
||||
assert.False(t, baseParams.loadFromCommonYaml())
|
||||
|
||||
baseParams.configDir = rightConfig
|
||||
assert.True(t, baseParams.loadFromCommonYaml())
|
||||
baseParams.loadFromMilvusYaml()
|
||||
}
|
||||
|
||||
func TestBateTable_ConfPath(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue