forked from mirror/redis
Merge pull request #496 from eyalpost/pubsub_test_fix
ensure wait.done to avoid deadlock in test
This commit is contained in:
commit
9405576413
|
@ -347,11 +347,11 @@ var _ = Describe("PubSub", func() {
|
||||||
defer GinkgoRecover()
|
defer GinkgoRecover()
|
||||||
|
|
||||||
wg.Done()
|
wg.Done()
|
||||||
|
defer wg.Done()
|
||||||
|
|
||||||
_, err := pubsub.ReceiveMessage()
|
_, err := pubsub.ReceiveMessage()
|
||||||
Expect(err).To(MatchError("redis: client is closed"))
|
Expect(err).To(MatchError("redis: client is closed"))
|
||||||
|
|
||||||
wg.Done()
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
Loading…
Reference in New Issue