mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Make build more stable
This commit is contained in:
@ -156,9 +156,9 @@ var _ = Describe("NewFailoverClusterClient", func() {
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
// Verify.
|
||||
val, err := client.Get(ctx, "foo").Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(val).To(Equal("master"))
|
||||
Eventually(func() string {
|
||||
return client.Get(ctx, "foo").Val()
|
||||
}, "15s", "1ms").Should(Equal("master"))
|
||||
}
|
||||
|
||||
// Create subscription.
|
||||
|
Reference in New Issue
Block a user