feat: registry.
This commit is contained in:
@@ -7,9 +7,12 @@ import (
|
||||
)
|
||||
|
||||
func TestNewZooKeeperRegistry(t *testing.T) {
|
||||
var cfg conf.Registry
|
||||
cfg.Zookeeper.Endpoints = []string{"127.0.0.1:2181"}
|
||||
cfg := conf.Registry{
|
||||
Zookeeper: &conf.Registry_ZooKeeper{
|
||||
Endpoints: []string{"127.0.0.1:2181"},
|
||||
},
|
||||
}
|
||||
|
||||
reg := NewRegistry(&cfg)
|
||||
assert.Nil(t, reg)
|
||||
assert.NotNil(t, reg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user