Fix flaky test.

This commit is contained in:
Vladimir Mihailenco 2015-06-03 14:36:48 +03:00
parent 90aaae2ba2
commit fc04a09033
1 changed files with 3 additions and 2 deletions

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() {