mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Port pool fixes
This commit is contained in:
@ -206,7 +206,7 @@ var _ = Describe("Client", func() {
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
cn.SetNetConn(&badConn{})
|
||||
client.Pool().Put(cn)
|
||||
client.Pool().Put(ctx, cn)
|
||||
|
||||
err = client.Ping(ctx).Err()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
@ -245,7 +245,7 @@ var _ = Describe("Client", func() {
|
||||
Expect(cn.UsedAt).NotTo(BeZero())
|
||||
createdAt := cn.UsedAt()
|
||||
|
||||
client.Pool().Put(cn)
|
||||
client.Pool().Put(ctx, cn)
|
||||
Expect(cn.UsedAt().Equal(createdAt)).To(BeTrue())
|
||||
|
||||
time.Sleep(time.Second)
|
||||
|
Reference in New Issue
Block a user