mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
fb0705df1b
Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
17 lines
363 B
Go
17 lines
363 B
Go
package paramtable
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestHTTPConfig_Init(t *testing.T) {
|
|
params := ComponentParam{}
|
|
params.Init(NewBaseTable(SkipRemote(true)))
|
|
cfg := ¶ms.HTTPCfg
|
|
assert.Equal(t, cfg.Enabled.GetAsBool(), true)
|
|
assert.Equal(t, cfg.DebugMode.GetAsBool(), false)
|
|
assert.Equal(t, cfg.Port.GetValue(), "")
|
|
}
|