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

Add pool instrumentation.

This commit is contained in:
Anatolii Mihailenco
2016-01-19 18:36:40 +02:00
parent dd1ac33826
commit f7a4bd5023
5 changed files with 57 additions and 0 deletions

View File

@ -313,6 +313,10 @@ var _ = Describe("Cluster", func() {
Expect(cnt).To(Equal(int64(1)))
})
It("should return pool stats", func() {
Expect(client.PoolStats()).To(BeAssignableToTypeOf(&redis.PoolStats{}))
})
It("should follow redirects", func() {
Expect(client.Set("A", "VALUE", 0).Err()).NotTo(HaveOccurred())