1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-18 00:20:57 +03:00

Revert "ConnPool check fd for bad conns (#1824)" (#1849)

This reverts commit 346bfafddd.
This commit is contained in:
monkey92t
2021-08-06 17:16:22 +08:00
committed by GitHub
parent 67ae445d24
commit fd3025bfed
10 changed files with 18 additions and 204 deletions

View File

@ -87,9 +87,8 @@ var _ = Describe("pool", func() {
cn.SetNetConn(&badConn{})
client.Pool().Put(ctx, cn)
// connCheck will automatically remove damaged connections.
err = client.Ping(ctx).Err()
Expect(err).NotTo(HaveOccurred())
Expect(err).To(MatchError("bad connection"))
val, err := client.Ping(ctx).Result()
Expect(err).NotTo(HaveOccurred())