diff --git a/pubsub_test.go b/pubsub_test.go index 9490688..ba26be7 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()