Skip to content
Snippets Groups Projects
Commit 93374a2e authored by wangwx's avatar wangwx
Browse files

fix glint

parent 132ca251
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,6 @@ func newLocalPriorityRouteFactory() router.PriorityRouterFactory {
}
// NewPriorityRouter construct a new NewLocalDiscRouter via url
func (f *LocalPriorityRouteFactory) NewPriorityRouter(url *common.URL) (router.PriorityRouter, error) {
func (f *LocalPriorityRouteFactory) NewPriorityRouter(url *common.URL, ch chan struct{}) (router.PriorityRouter, error) {
return NewLocalPriorityRouter(url)
}
......@@ -120,11 +120,6 @@ func TestGetConfig(t *testing.T) {
assert.Equal(t, "", configs)
}
func printMap(key, value interface{}) bool {
fmt.Println(key, value)
return true
}
func TestAddListener(t *testing.T) {
ts, reg := initZkData("", t)
defer func() {
......@@ -132,11 +127,9 @@ func TestAddListener(t *testing.T) {
err := ts.Stop()
assert.NoError(t, err)
}()
reg.cacheListener.keyListeners.Range(printMap)
listener := &mockDataListener{}
reg.AddListener(dubboPropertyFileName, listener)
reg.cacheListener.keyListeners.Range(printMap)
listener.wg.Add(1)
data := `
dubbo.consumer.request_timeout=3s
......
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