mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
PubSub conns don't share connection pool limit
This commit is contained in:
12
pool_test.go
12
pool_test.go
@ -77,18 +77,6 @@ var _ = Describe("pool", func() {
|
||||
Expect(pool.Len()).To(Equal(pool.FreeLen()))
|
||||
})
|
||||
|
||||
It("respects max size on pubsub", func() {
|
||||
connPool := client.Pool()
|
||||
|
||||
perform(1000, func(id int) {
|
||||
pubsub := client.Subscribe("test")
|
||||
Expect(pubsub.Close()).NotTo(HaveOccurred())
|
||||
})
|
||||
|
||||
Expect(connPool.Len()).To(Equal(connPool.FreeLen()))
|
||||
Expect(connPool.Len()).To(BeNumerically("<=", 10))
|
||||
})
|
||||
|
||||
It("removes broken connections", func() {
|
||||
cn, _, err := client.Pool().Get()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user