@@ -62,13 +62,13 @@ var _ = Describe("Sentinel", func() {
6262 // Wait until slaves are picked up by sentinel.
6363 Eventually (func () string {
6464 return sentinel1 .Info (ctx ).Val ()
65- }, "15s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
65+ }, "20s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
6666 Eventually (func () string {
6767 return sentinel2 .Info (ctx ).Val ()
68- }, "15s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
68+ }, "20s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
6969 Eventually (func () string {
7070 return sentinel3 .Info (ctx ).Val ()
71- }, "15s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
71+ }, "20s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
7272 })
7373
7474 AfterEach (func () {
@@ -92,7 +92,7 @@ var _ = Describe("Sentinel", func() {
9292 Eventually (func () []string {
9393 slavesAddr = redis .GetSlavesAddrByName (ctx , sentinel , sentinelName )
9494 return slavesAddr
95- }, "15s " , "100ms" ).Should (HaveLen (2 ))
95+ }, "20s " , "100ms" ).Should (HaveLen (2 ))
9696 Eventually (func () bool {
9797 sync := true
9898 for _ , addr := range slavesAddr {
@@ -104,7 +104,7 @@ var _ = Describe("Sentinel", func() {
104104 _ = slave .Close ()
105105 }
106106 return sync
107- }, "15s " , "100ms" ).Should (BeTrue ())
107+ }, "20s " , "100ms" ).Should (BeTrue ())
108108
109109 // Create subscription.
110110 pub := client .Subscribe (ctx , "foo" )
@@ -115,19 +115,19 @@ var _ = Describe("Sentinel", func() {
115115 Expect (err ).NotTo (HaveOccurred ())
116116 Eventually (func () error {
117117 return master .Ping (ctx ).Err ()
118- }, "15s " , "100ms" ).Should (HaveOccurred ())
118+ }, "20s " , "100ms" ).Should (HaveOccurred ())
119119
120120 // Check that client picked up new master.
121121 Eventually (func () string {
122122 return client .Get (ctx , "foo" ).Val ()
123- }, "15s " , "100ms" ).Should (Equal ("master" ))
123+ }, "20s " , "100ms" ).Should (Equal ("master" ))
124124
125125 // Check if subscription is renewed.
126126 var msg * redis.Message
127127 Eventually (func () <- chan * redis.Message {
128128 _ = client .Publish (ctx , "foo" , "hello" ).Err ()
129129 return ch
130- }, "15s " , "100ms" ).Should (Receive (& msg ))
130+ }, "20s " , "100ms" ).Should (Receive (& msg ))
131131 Expect (msg .Channel ).To (Equal ("foo" ))
132132 Expect (msg .Payload ).To (Equal ("hello" ))
133133 Expect (pub .Close ()).NotTo (HaveOccurred ())
@@ -217,13 +217,13 @@ var _ = Describe("NewFailoverClusterClient", func() {
217217 // Wait until slaves are picked up by sentinel.
218218 Eventually (func () string {
219219 return sentinel1 .Info (ctx ).Val ()
220- }, "15s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
220+ }, "20s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
221221 Eventually (func () string {
222222 return sentinel2 .Info (ctx ).Val ()
223- }, "15s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
223+ }, "20s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
224224 Eventually (func () string {
225225 return sentinel3 .Info (ctx ).Val ()
226- }, "15s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
226+ }, "20s " , "100ms" ).Should (ContainSubstring ("slaves=2" ))
227227 })
228228
229229 AfterEach (func () {
@@ -240,7 +240,7 @@ var _ = Describe("NewFailoverClusterClient", func() {
240240 // Verify.
241241 Eventually (func () string {
242242 return client .Get (ctx , "foo" ).Val ()
243- }, "15s " , "1ms" ).Should (Equal ("master" ))
243+ }, "20s " , "1ms" ).Should (Equal ("master" ))
244244 }
245245
246246 // Create subscription.
@@ -252,19 +252,19 @@ var _ = Describe("NewFailoverClusterClient", func() {
252252 Expect (err ).NotTo (HaveOccurred ())
253253 Eventually (func () error {
254254 return master .Ping (ctx ).Err ()
255- }, "15s " , "100ms" ).Should (HaveOccurred ())
255+ }, "20s " , "100ms" ).Should (HaveOccurred ())
256256
257257 // Check that client picked up new master.
258258 Eventually (func () string {
259259 return client .Get (ctx , "foo" ).Val ()
260- }, "15s " , "100ms" ).Should (Equal ("master" ))
260+ }, "20s " , "100ms" ).Should (Equal ("master" ))
261261
262262 // Check if subscription is renewed.
263263 var msg * redis.Message
264264 Eventually (func () <- chan * redis.Message {
265265 _ = client .Publish (ctx , "foo" , "hello" ).Err ()
266266 return ch
267- }, "15s " , "100ms" ).Should (Receive (& msg ))
267+ }, "20s " , "100ms" ).Should (Receive (& msg ))
268268 Expect (msg .Channel ).To (Equal ("foo" ))
269269 Expect (msg .Payload ).To (Equal ("hello" ))
270270 Expect (sub .Close ()).NotTo (HaveOccurred ())
@@ -342,7 +342,7 @@ var _ = Describe("SentinelAclAuth", func() {
342342 for _ , process := range sentinels () {
343343 Eventually (func () string {
344344 return process .Info (ctx ).Val ()
345- }, "15s " , "100ms" ).Should (ContainSubstring ("sentinels=3" ))
345+ }, "20s " , "100ms" ).Should (ContainSubstring ("sentinels=3" ))
346346 }
347347 })
348348
0 commit comments