Skip to content

Commit

Permalink
Add GinkgoRecover
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jun 16, 2019
1 parent 1cc1ba9 commit 8cc3160
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8cc3160

Please sign in to comment.