mirror of
https://github.com/redis/go-redis.git
synced 2025-06-14 01:21:30 +03:00
Added implementation for WAIT command
Reference: https://redis.io/commands/wait
This commit is contained in:
committed by
Vladimir Mihailenco
parent
9405576413
commit
6b8c6b3fe9
@ -50,6 +50,13 @@ var _ = Describe("Commands", func() {
|
||||
Expect(ping.Val()).To(Equal("PONG"))
|
||||
})
|
||||
|
||||
It("should Wait", func() {
|
||||
// assume testing on single redis instance
|
||||
wait := client.Wait(0, time.Minute)
|
||||
Expect(wait.Err()).NotTo(HaveOccurred())
|
||||
Expect(wait.Val()).To(Equal(int64(0)))
|
||||
})
|
||||
|
||||
It("should Select", func() {
|
||||
pipe := client.Pipeline()
|
||||
sel := pipe.Select(1)
|
||||
|
Reference in New Issue
Block a user