mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Supports new style syntax of client kill command
This commit is contained in:
@ -115,6 +115,12 @@ var _ = Describe("Commands", func() {
|
||||
Expect(r.Val()).To(Equal(""))
|
||||
})
|
||||
|
||||
It("should ClientKillByFilter", func() {
|
||||
r := client.ClientKillByFilter("TYPE", "test")
|
||||
Expect(r.Err()).To(MatchError("ERR Unknown client type 'test'"))
|
||||
Expect(r.Val()).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