mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add Client Unblock
This commit is contained in:
@ -127,6 +127,13 @@ var _ = Describe("Commands", func() {
|
||||
Expect(client.ClientID().Val()).To(BeNumerically(">=", 0))
|
||||
})
|
||||
|
||||
It("should ClientUnblock", func() {
|
||||
id := client.ClientID().Val()
|
||||
r, err := client.ClientUnblock(id, true).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(r).To(Equal(int64(0)))
|
||||
})
|
||||
|
||||
It("should ClientPause", func() {
|
||||
err := client.ClientPause(time.Second).Err()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user