milvus/internal/util/paramtable/http_param_test.go
congqixia 5986106037
Make paramtable init only once (#21782)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2023-01-19 14:53:44 +08:00

16 lines
287 B
Go

package paramtable
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHTTPConfig_Init(t *testing.T) {
params := ComponentParam{}
params.Init()
cf := params.HTTPCfg
assert.Equal(t, cf.Enabled.GetAsBool(), true)
assert.Equal(t, cf.DebugMode.GetAsBool(), false)
}