1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-14 01:21:30 +03:00

Fix pool waiting for connection that was removed.

This commit is contained in:
Vladimir Mihailenco
2015-04-17 14:44:56 +03:00
parent 6d8aaa46d2
commit d3fb658fef
5 changed files with 74 additions and 45 deletions

View File

@ -92,7 +92,7 @@ var _ = Describe("Client", func() {
It("should support idle-timeouts", func() {
idle := redis.NewTCPClient(&redis.Options{
Addr: redisAddr,
IdleTimeout: time.Nanosecond,
IdleTimeout: 100 * time.Microsecond,
})
defer idle.Close()