Skip to content

Commit

Permalink
fix: mock zk registry
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin committed Jul 29, 2021
1 parent b2ae992 commit 8e209e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions common/logger/logs.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
2021-07-29T23:07:37.548+0800 DEBUG debug
2021-07-29T23:07:37.549+0800 INFO info
2021-07-29T23:07:37.549+0800 WARN warn
2021-07-29T23:07:37.549+0800 ERROR error
2021-07-29T23:07:37.549+0800 DEBUG debug
2021-07-29T23:07:37.549+0800 INFO info
2021-07-29T23:07:37.549+0800 WARN warn
2021-07-29T23:07:37.549+0800 ERROR error
2021-07-29T23:07:37.549+0800 DEBUG debug
2021-07-29T23:07:37.549+0800 INFO info
2021-07-29T23:07:37.549+0800 DEBUG debug
2021-07-29T23:07:37.549+0800 INFO info
2021-07-29T23:07:37.566+0800 DEBUG debug
2021-07-29T23:07:37.566+0800 INFO info
1 change: 1 addition & 0 deletions registry/zookeeper/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func newMockZkRegistry(url *common.URL, opts ...gxzookeeper.Option) (*zk.TestClu
if err != nil {
return nil, nil, err
}
r.WaitGroup().Add(1)
go zookeeper.HandleClientRestart(r)
r.InitListeners()
return c, r, nil
Expand Down

0 comments on commit 8e209e0

Please sign in to comment.