mirror of
https://github.com/redis/go-redis.git
synced 2025-06-15 12:41:41 +03:00
Faster and simpler pool.
This commit is contained in:
@ -166,7 +166,8 @@ var _ = Describe("Client", func() {
|
||||
err = client.Ping().Err()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
cn = client.Pool().First()
|
||||
cn, err = client.Pool().Get()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(cn).NotTo(BeNil())
|
||||
Expect(cn.UsedAt.After(createdAt)).To(BeTrue())
|
||||
})
|
||||
|
Reference in New Issue
Block a user