feat: registry.
This commit is contained in:
20
registry/nacos/client_creator_test.go
Normal file
20
registry/nacos/client_creator_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package nacos
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
|
||||
)
|
||||
|
||||
func TestNewNacosRegistry(t *testing.T) {
|
||||
cfg := conf.Registry{
|
||||
Nacos: &conf.Registry_Nacos{
|
||||
Address: "127.0.0.1",
|
||||
Port: 8848,
|
||||
},
|
||||
}
|
||||
|
||||
reg := NewRegistry(&cfg)
|
||||
assert.NotNil(t, reg)
|
||||
}
|
||||
Reference in New Issue
Block a user