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

Add Client.String method.

This commit is contained in:
Vladimir Mihailenco
2015-05-15 15:21:28 +03:00
parent c1033ead39
commit f531b3b493
3 changed files with 11 additions and 2 deletions

View File

@ -24,6 +24,10 @@ var _ = Describe("Client", func() {
client.Close()
})
It("should Stringer", func() {
Expect(client.String()).To(Equal("Redis<:6380 db:0>"))
})
It("should ping", func() {
val, err := client.Ping().Result()
Expect(err).NotTo(HaveOccurred())