mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 20:39:36 +08:00
166e9f0da5
Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com> Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
16 lines
291 B
Go
16 lines
291 B
Go
package paramtable
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestHTTPConfig_Init(t *testing.T) {
|
|
params := ComponentParam{}
|
|
params.InitOnce()
|
|
cf := params.HTTPCfg
|
|
assert.Equal(t, cf.Enabled.GetAsBool(), true)
|
|
assert.Equal(t, cf.DebugMode.GetAsBool(), false)
|
|
}
|