diff --git a/pool_test.go b/pool_test.go index 781c5df9..08acc6de 100644 --- a/pool_test.go +++ b/pool_test.go @@ -105,6 +105,13 @@ var _ = Describe("pool", func() { }) It("reuses connections", func() { + // explain: https://github.com/go-redis/redis/pull/1675 + opt := redisOptions() + opt.MinIdleConns = 0 + opt.MaxConnAge = 0 + opt.IdleTimeout = 2 * time.Second + client = redis.NewClient(opt) + for i := 0; i < 100; i++ { val, err := client.Ping(ctx).Result() Expect(err).NotTo(HaveOccurred())