mirror of https://github.com/go-redis/redis.git
Relax test condition.
This commit is contained in:
parent
7f87de6109
commit
377d92ae1a
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue