Add GinkgoRecover

This commit is contained in:
Vladimir Mihailenco 2019-06-16 14:47:24 +03:00
parent 1cc1ba9990
commit 8cc316035b
1 changed files with 2 additions and 0 deletions

View File

@ -379,6 +379,8 @@ var _ = Describe("Ring watch", func() {
}) })
ring.ForEachShard(func(cl *redis.Client) error { ring.ForEachShard(func(cl *redis.Client) error {
defer GinkgoRecover()
pool := cl.Pool() pool := cl.Pool()
Expect(pool.Len()).To(BeNumerically("<=", 10)) Expect(pool.Len()).To(BeNumerically("<=", 10))
Expect(pool.IdleLen()).To(BeNumerically("<=", 10)) Expect(pool.IdleLen()).To(BeNumerically("<=", 10))