1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add hooks to Conn. Fixes #1539

This commit is contained in:
Vladimir Mihailenco
2020-10-17 15:21:09 +03:00
parent a6876ad84a
commit e99a39201b
2 changed files with 15 additions and 1 deletions

View File

@ -295,6 +295,11 @@ var _ = Describe("Client", func() {
Expect(tm2).To(BeTemporally("==", tm))
})
It("should Conn", func() {
err := rdb.Conn(ctx).Get(ctx, "this-key-does-not-exist").Err()
Expect(err).To(Equal(redis.Nil))
})
})
var _ = Describe("Client timeout", func() {