Relax test condition.

This commit is contained in:
Vladimir Mihailenco 2015-01-30 16:58:26 +02:00
parent 7f87de6109
commit 377d92ae1a
1 changed files with 4 additions and 2 deletions

View File

@ -39,8 +39,10 @@ var _ = Describe("Pool", func() {
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
Expect(val).To(Equal("PONG")) Expect(val).To(Equal("PONG"))
}) })
Expect(client.Pool().Size()).To(Equal(10)) pool := client.Pool()
Expect(client.Pool().Len()).To(Equal(10)) Expect(pool.Size()).To(BeNumerically("<=", 10))
Expect(pool.Len()).To(BeNumerically("<=", 10))
Expect(pool.Size()).To(Equal(pool.Len()))
}) })
It("should respect max on multi", func() { It("should respect max on multi", func() {