feat: registry.
This commit is contained in:
18
registry/servicecomb/client_creator_test.go
Normal file
18
registry/servicecomb/client_creator_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user