Skip to content

Commit

Permalink
fix: mock zk registry (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin committed Jul 30, 2021
1 parent b2ae992 commit 92df41c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@
*.so
*.dylib
*.jar
*.log

# Test binary, build with `go test -c`
*.test
Expand Down
1 change: 1 addition & 0 deletions registry/zookeeper/registry.go
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 92df41c

Please sign in to comment.