Skip to content
Snippets Groups Projects
Commit 08e9d84a authored by CodingSinger's avatar CodingSinger
Browse files

fix ut

parent a530ed5c
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ func newZookeeperDynamicConfiguration(url *common.URL) (*zookeeperDynamicConfigu
c.cacheListener = NewCacheListener(c.rootPath)
err = c.client.Create(c.rootPath)
c.listener.ListenServiceEvent(c.rootPath, c.cacheListener)
c.listener.ListenServiceEvent(url, c.rootPath, c.cacheListener)
return c, err
}
......@@ -100,7 +100,7 @@ func newMockZookeeperDynamicConfiguration(url *common.URL, opts ...zookeeper.Opt
c.cacheListener = NewCacheListener(c.rootPath)
err = c.client.Create(c.rootPath)
go c.listener.ListenServiceEvent(c.rootPath, c.cacheListener)
go c.listener.ListenServiceEvent(url, c.rootPath, c.cacheListener)
return tc, c, err
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment