mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Fix names and add comments.
This commit is contained in:
@ -90,12 +90,12 @@ var _ = Describe("Commands", func() {
|
||||
}, "1s").ShouldNot(HaveOccurred())
|
||||
})
|
||||
|
||||
It("should SetName", func() {
|
||||
isSet, err := client.SetName("theclientname").Result()
|
||||
It("should ClientSetName and ClientGetName", func() {
|
||||
isSet, err := client.ClientSetName("theclientname").Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(isSet).To(Equal("OK"))
|
||||
Expect(isSet).To(BeTrue())
|
||||
|
||||
val, err := client.GetName().Result()
|
||||
val, err := client.ClientGetName().Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(val).To(Equal("theclientname"))
|
||||
})
|
||||
|
Reference in New Issue
Block a user