mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
pubsub: drop a message when the channel is full
This commit is contained in:
@ -27,6 +27,13 @@ var _ = Describe("PubSub", func() {
|
||||
Expect(client.Close()).NotTo(HaveOccurred())
|
||||
})
|
||||
|
||||
It("implements Stringer", func() {
|
||||
pubsub := client.PSubscribe("mychannel*")
|
||||
defer pubsub.Close()
|
||||
|
||||
Expect(pubsub.String()).To(Equal("PubSub(mychannel*)"))
|
||||
})
|
||||
|
||||
It("should support pattern matching", func() {
|
||||
pubsub := client.PSubscribe("mychannel*")
|
||||
defer pubsub.Close()
|
||||
|
Reference in New Issue
Block a user