1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Fix/normalise pubsubnumsub response

This commit is contained in:
Dimitrij Denissenko
2015-01-25 12:05:19 +00:00
committed by Vladimir Mihailenco
parent 2a81661b34
commit 34855172f2
4 changed files with 75 additions and 6 deletions

View File

@ -101,10 +101,10 @@ var _ = Describe("PubSub", func() {
channels, err := client.PubSubNumSub("mychannel", "mychannel2", "mychannel3").Result()
Expect(err).NotTo(HaveOccurred())
Expect(channels).To(Equal([]interface{}{
"mychannel", int64(1),
"mychannel2", int64(1),
"mychannel3", int64(0),
Expect(channels).To(Equal(map[string]int64{
"mychannel": 1,
"mychannel2": 1,
"mychannel3": 0,
}))
})