Increase read/write timeout.

This commit is contained in:
Vladimir Mihailenco 2015-05-18 14:52:46 +03:00
parent bca8659b54
commit e72b69b964
1 changed files with 3 additions and 3 deletions

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()