mirror of https://github.com/go-redis/redis.git
ensure wait.done to avoid deadlock in test
This commit is contained in:
parent
7c0cf90fb8
commit
5de14cbf58
|
@ -347,11 +347,11 @@ var _ = Describe("PubSub", func() {
|
|||
defer GinkgoRecover()
|
||||
|
||||
wg.Done()
|
||||
|
||||
defer wg.Done()
|
||||
|
||||
_, err := pubsub.ReceiveMessage()
|
||||
Expect(err).To(MatchError("redis: client is closed"))
|
||||
|
||||
wg.Done()
|
||||
}()
|
||||
|
||||
wg.Wait()
|
||||
|
|
Loading…
Reference in New Issue