test fix dead lock

This commit is contained in:
wangchuxiao
2023-06-01 16:38:33 +08:00
parent dcd46e2363
commit d9d64d810b
3 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -103,8 +103,8 @@ func NewClient(zkServers []string, zkRoot string, options ...ZkOption) (*ZkClien
resolver.Register(client)
var wg sync.WaitGroup
wg.Add(2)
go client.refresh(&wg)
go client.watch(&wg)
// go client.refresh(&wg)
// go client.watch(&wg)
wg.Wait()
return client, nil
}