mirror of
https://github.com/redis/go-redis.git
synced 2025-07-18 00:20:57 +03:00
This reverts commit 346bfafddd
.
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user