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:
committed by
Vladimir Mihailenco
parent
2a81661b34
commit
34855172f2
@ -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,
|
||||
}))
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user