package polaris import ( "github.com/stretchr/testify/assert" conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1" "testing" ) func TestNewPolarisRegistry(t *testing.T) { cfg := conf.Registry{ Polaris: &conf.Registry_Polaris{ Address: "127.0.0.1", Port: 8091, InstanceCount: 5, Namespace: "default", Service: "DiscoverEchoServer", Token: "", }, } reg := NewRegistry(&cfg) assert.NotNil(t, reg) }