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:
@ -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()
|
||||
|
Reference in New Issue
Block a user