1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add race test for BLPop

This commit is contained in:
Vladimir Mihailenco
2018-03-08 10:16:53 +02:00
parent 9133634a13
commit 11ca0e65c6
3 changed files with 33 additions and 3 deletions

View File

@ -788,8 +788,8 @@ var _ = Describe("ClusterClient timeout", func() {
Context("read/write timeout", func() {
BeforeEach(func() {
opt := redisClusterOptions()
opt.ReadTimeout = 200 * time.Millisecond
opt.WriteTimeout = 200 * time.Millisecond
opt.ReadTimeout = 300 * time.Millisecond
opt.WriteTimeout = 300 * time.Millisecond
opt.MaxRedirects = 1
client = cluster.clusterClient(opt)