1
0
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:
Vladimir Mihailenco
2015-10-22 14:15:47 +03:00
parent 799deba407
commit 2bf0ea529d
2 changed files with 9 additions and 7 deletions

View File

@ -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"))
})