Files
kratos-bootstrap/registry/zookeeper/client_creator_test.go
2025-06-02 11:53:18 +08:00

19 lines
351 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) {
cfg := conf.Registry{
Zookeeper: &conf.Registry_ZooKeeper{
Endpoints: []string{"127.0.0.1:2181"},
},
}
reg := NewRegistry(&cfg)
assert.NotNil(t, reg)
}