forked from mirror/redis
Make build more stable
This commit is contained in:
parent
30e120f33e
commit
b85a319370
|
@ -156,9 +156,9 @@ var _ = Describe("NewFailoverClusterClient", func() {
|
||||||
|
|
||||||
for i := 0; i < 100; i++ {
|
for i := 0; i < 100; i++ {
|
||||||
// Verify.
|
// Verify.
|
||||||
val, err := client.Get(ctx, "foo").Result()
|
Eventually(func() string {
|
||||||
Expect(err).NotTo(HaveOccurred())
|
return client.Get(ctx, "foo").Val()
|
||||||
Expect(val).To(Equal("master"))
|
}, "15s", "1ms").Should(Equal("master"))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create subscription.
|
// Create subscription.
|
||||||
|
|
Loading…
Reference in New Issue