mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add pool instrumentation.
This commit is contained in:
@ -35,6 +35,10 @@ var _ = Describe("Client", func() {
|
||||
Expect(val).To(Equal("PONG"))
|
||||
})
|
||||
|
||||
It("should return pool stats", func() {
|
||||
Expect(client.PoolStats()).To(BeAssignableToTypeOf(&redis.PoolStats{}))
|
||||
})
|
||||
|
||||
It("should support custom dialers", func() {
|
||||
custom := redis.NewClient(&redis.Options{
|
||||
Dialer: func() (net.Conn, error) {
|
||||
|
Reference in New Issue
Block a user