mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
a7eecb1be0
Signed-off-by: PowderLi <min.li@zilliz.com>
17 lines
328 B
Go
17 lines
328 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)
|
|
assert.Equal(t, cf.Port.GetValue(), "")
|
|
}
|