Merge pull request #496 from eyalpost/pubsub_test_fix

ensure wait.done to avoid deadlock in test
This commit is contained in:
Vladimir Mihailenco 2017-02-16 12:09:38 +03:00 committed by GitHub
commit 9405576413
1 changed files with 2 additions and 2 deletions

View File

@ -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()