mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
5986106037
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
16 lines
287 B
Go
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)
|
|
}
|