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

Increase read/write timeout.

This commit is contained in:
Vladimir Mihailenco
2015-05-18 14:52:46 +03:00
parent bca8659b54
commit e72b69b964

View File

@ -19,8 +19,8 @@ var _ = Describe("Commands", func() {
BeforeEach(func() {
client = redis.NewClient(&redis.Options{
Addr: redisAddr,
ReadTimeout: 100 * time.Millisecond,
WriteTimeout: 100 * time.Millisecond,
ReadTimeout: 500 * time.Millisecond,
WriteTimeout: 500 * time.Millisecond,
PoolTimeout: 30 * time.Second,
})
})
@ -83,7 +83,7 @@ var _ = Describe("Commands", func() {
Consistently(func() error {
return client.Ping().Err()
}, "500ms").Should(HaveOccurred())
}, "900ms").Should(HaveOccurred())
Eventually(func() error {
return client.Ping().Err()