Skip to content

Commit 57ea7a6

Browse files
fix: mock zk registry
1 parent b2ae992 commit 57ea7a6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.so
66
*.dylib
77
*.jar
8+
*.log
89

910
# Test binary, build with `go test -c`
1011
*.test

registry/zookeeper/registry.go

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func newMockZkRegistry(url *common.URL, opts ...gxzookeeper.Option) (*zk.TestClu
108108
if err != nil {
109109
return nil, nil, err
110110
}
111+
r.WaitGroup().Add(1)
111112
go zookeeper.HandleClientRestart(r)
112113
r.InitListeners()
113114
return c, r, nil

0 commit comments

Comments
 (0)