From 5de14cbf582662a9819e15bcae7c39800dc1a720 Mon Sep 17 00:00:00 2001 From: eyalpost Date: Wed, 15 Feb 2017 17:15:24 +0200 Subject: [PATCH] ensure wait.done to avoid deadlock in test --- pubsub_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubsub_test.go b/pubsub_test.go index 94906883..ba26be7b 100644 --- a/pubsub_test.go +++ b/pubsub_test.go @@ -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()