Files
kratos-bootstrap/registry/zookeeper/client_test.go
2024-05-06 12:05:57 +08:00

16 lines
313 B
Go

package zookeeper
import (
"github.com/stretchr/testify/assert"
conf "github.com/tx7do/kratos-bootstrap/api/gen/go/conf/v1"
"testing"
)
func TestNewZooKeeperRegistry(t *testing.T) {
var cfg conf.Registry
cfg.Zookeeper.Endpoints = []string{"127.0.0.1:2181"}
reg := NewRegistry(&cfg)
assert.Nil(t, reg)
}