milvus/internal/util/paramtable/http_param_test.go
shaoyue 96b97f7f58
RESTful api use same port as metrics & healthcheck (#17732)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
2022-06-24 15:34:14 +08:00

15 lines
236 B
Go

package paramtable
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHTTPConfig_Init(t *testing.T) {
cf := new(HTTPConfig)
cf.InitOnce()
assert.Equal(t, cf.Enabled, true)
assert.Equal(t, cf.DebugMode, false)
}