1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Support custom command in pipeline

This commit is contained in:
Vladimir Mihailenco
2019-02-08 13:22:46 +02:00
parent 228e43ba24
commit 5240e1403a
2 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,13 @@ var _ = Describe("pipelining", func() {
Expect(err).NotTo(HaveOccurred())
Expect(val).To(Equal("value"))
})
It("supports custom command", func() {
pipe.Do("ping")
cmds, err := pipe.Exec()
Expect(err).NotTo(HaveOccurred())
Expect(cmds).To(HaveLen(1))
})
}
Describe("Pipeline", func() {