19 lines
351 B
Go
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)
|
|
}
|