Files
kratos-bootstrap/registry/servicecomb/client_test.go
2025-06-02 08:36:25 +08:00

19 lines
360 B
Go

package servicecomb
import (
"github.com/stretchr/testify/assert"
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
"testing"
)
func TestNewServicecombRegistry(t *testing.T) {
cfg := conf.Registry{
Servicecomb: &conf.Registry_Servicecomb{
Endpoints: []string{"127.0.0.1:30100"},
},
}
reg := NewRegistry(&cfg)
assert.NotNil(t, reg)
}