1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Fix flaky test.

This commit is contained in:
Vladimir Mihailenco
2015-06-03 14:36:48 +03:00
parent 90aaae2ba2
commit fc04a09033

View File

@ -101,8 +101,9 @@ var _ = Describe("Pool", func() {
})
pool := client.Pool()
Expect(pool.Len()).To(Equal(10))
Expect(pool.FreeLen()).To(Equal(10))
Expect(pool.Len()).To(BeNumerically("<=", 10))
Expect(pool.FreeLen()).To(BeNumerically("<=", 10))
Expect(pool.Len()).To(Equal(pool.FreeLen()))
})
It("should remove broken connections", func() {