From 8cc316035bbaba376631b69e673c765baf8ffcf4 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sun, 16 Jun 2019 14:47:24 +0300 Subject: [PATCH] Add GinkgoRecover --- ring_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ring_test.go b/ring_test.go index 4ff0898..e44a404 100644 --- a/ring_test.go +++ b/ring_test.go @@ -379,6 +379,8 @@ var _ = Describe("Ring watch", func() { }) ring.ForEachShard(func(cl *redis.Client) error { + defer GinkgoRecover() + pool := cl.Pool() Expect(pool.Len()).To(BeNumerically("<=", 10)) Expect(pool.IdleLen()).To(BeNumerically("<=", 10))